The Function GET_ATT_SUBSTR does not work properly when parsing the first Parameter

Document ID : KB000087518
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Error Message :
N/A

The function GET_ATT_SUBSTR does not work properly when parsing the first parameter. 

Investigation

In the process tab of the Notification Object: 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
:SET &POD#=GET_ATT_SUBSTR(ARCHIVE_KEY1,1,3) 
:P &POD# 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

Then, the Archive 1 contains SYS;NET;ERP. 

Results

Actual:  The value for &POD# is SYS;NET;ERP

Expected:  The value of &POD# should be SYS
Environment:
OS Version: N/A
Cause:
Cause type:
By design
Root Cause: This is normal behavior for GET_ATT_SUBSTR. It can only be used with the body of the Notification.
Resolution:

If you need to retrieve the archive attributes, you must use GET_ATT and SUBSTR functions.

Example:

:SET &POD#=GET_ATT(ARCHIVE_KEY1) :P &POD# :SET &SUB#=SUBSTR(&POD#,1,3) :P &SUB#



Fix Status: No Fix

Fix Version(s):
N/A
Additional Information:
Workaround :
N/A