Calling Easytrieve program from an Easytrieve program

Document ID : KB000095866
Last Modified Date : 05/06/2018
Show Technical Document Details
Question:
When using the PROGRAM USING logic, does the coding need to account for the 2 byte parm length to get the correct results?
Answer:
Please see this documentation link:
https://docops.ca.com/display/CAET/.PROGRAM+Statement+v11.6 

Yes, the data for the field-name consists of a two-byte length value followed by the data. 

Note:
If the field-name definition includes the VARYING parameter, the data in the field is alphanumeric and of varying length. This applies to the standard way that z/OS invokes main programs. For more information about the VARYING parameter, see DEFINE Statement.