ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

%SUBST Issue

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • %SUBST Issue

    I am getting the following error trying to use %SUBST
    Click image for larger version

Name:	image.png
Views:	178
Size:	12.9 KB
ID:	158874

    INS1, INS2, IINS3 are defined in the program as length 30A and ORICOMMEN is defined as 2048A, so I don't know if the size of ORICOMMEN has anything to do with it but everything looks OK to me. ORICOMMEN also has an alias, if that means anything. Any idea why I am getting this error

    Click image for larger version

Name:	image.png
Views:	85
Size:	9.8 KB
ID:	158875

  • #2
    ORICOMMEN is a variable length field, you have to check the third parm does not exceed the length of the data

    There is an IBM idea to change this: https://ibm-power-systems.ideas.ibm....as/IBMI-I-3036
    Nicolas

    Comment

    Working...
    X