Grouping data to be passed
About this task
Consider grouping all the data items that you need to pass between programs and putting them under one level-01 item. If you do so, you can pass a single level-01 record.
Note that if you pass a data item BY VALUE
,
it must be an elementary item.
To lessen the possibility of mismatched records, put the
level-01 record into a copy library and copy it into both programs.
That is, copy it in the WORKING-STORAGE SECTION
of
the calling program and in the LINKAGE SECTION
of
the called program.