On 2018-10-20 5:25 PM, Brian Parkins wrote:
I think you have some superfluous code there, Shane.

Your existing code could be written as this single line:

D ADS           EUDS                  EXTNAME(FILE)

- the "U" in column 23 assumes a Data Area Data Structure and reads in the *DTAARA ADS at the start of the program - no need for DEFINE or IN.

The equivalent free format would look like:

     Dcl-DS ADS EXTNAME('FILE') Dtaara(*Auto) End-DS;


Brian, that would make the program behave differently. It would be equivalent to IN *LOCK at the beginning of the program and OUT at the end. Shane's program was just doing an IN, without lock and without any change of the data area.


This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].