Our shop is using old versions of SAG products. We are at v3.3 of Natural. I want to run a batch job to download programs from Natural to sequential files on our IBM mainframe. I have no idea what a wizard is as they do not exist for these older versions of the software so the recent replies indicating the use of a wizard to a similar question do not apply in our shop.
I have done that at Miami Dade College. To download your Natural source code to a PC as a flat (*.TXT) file, you can do this thru a JCL that reads your program from Develpment Library and creates a Data Set.
Then you FTP the data set as PC flat file and later open it with Word or Notepad.
“Read your program from development …” This requires a DDM for your FUSER or an understanding of Natural’s user exits. SYSTRANS output contains header records and record prefixes. Yuch.
LIST SEQUENTIAL is the simplest method. A single command can produce a dataset of all source members in your library:
L SEQ * NUMBERS OFF
Of course, breaking the file into individual members is a bit of work without PC-based tools.