Page 1 of 1

Is it possible to declare Occurs in Linkage Section

PostPosted: Wed Aug 26, 2009 12:42 pm
by bhanu1209
Hi,

I have a requirement to pass the array(Occurs clause) to the sub program. Is it possible or not.

Ex:

LINKAGE-SECTION.
01 WS-INPUT.
05 WS-INPUT-LENGTH PIC 9(4).
05 WS-A PIC 9(10) OCCURS 10 TIMES ---- ?

Thanks,
Bhanu

Re: Is it possible to declare Occurs in Linkage Section

PostPosted: Thu Aug 27, 2009 12:16 am
by dick scherrer
Hello,

Yes, it is possible. . .

When calling a subprogram the length is not necessary. If specified, it must be defined the same in both the calling and called code.