Previous Topic: Register Natural Programs

Next Topic: Register the Program

Extract the Listing

An example of the JCL that can be used to extract the listing to a sequential data set is shown following.

//xxxxxxxx JOB (job card info)                   
//NATBAT  EXEC PGM=NATvrmBA,                     
//             PARM=(Natural parameters)         
//* STEPLIB   DD DISP=SHR,DSN=SAGLIB.NATvrm.LOAD 
//DDPRINT   DD SYSOUT=*                          
//DDDRUCK   DD SYSOUT=*                          
//CMPRINT   DD DISP=(,CATLG,DELETE),             
//             DSN=yourhlq.NATURAL.LISTING,      
//             UNIT=SYSDA,SPACE=(TRK,(15,15),RLSE)
//CMPRT01   DD SYSOUT=*                          
//CMSYNIN   DD *                                 
LOGON <Natural-Library-Name>                     
LIST PROGRAM <Natural-Program-Name>

In order to use this JCL, you must change it as follows:

  1. A valid job card must be supplied.
  2. The correct name of the Natural batch program must be provided on the
    EXEC PGM= statement.

    Refer to the person who installed Natural at your company for more information. The JCL shows the default naming convention used in the Software AG installation materials.

  3. Any Natural parameters that your installation requires must be provided on the PARM= statement.

    Refer to the person who installed Natural at your company for more information. CA Mainframe Application Tuner requires no special Natural parameters.

  4. If the Natural load library is not part of the system linklist concatenation, then the STEPLIB DD statement must be uncommented and the name of the Natural load library must be specified.

    Refer to your system programmer or Natural installer for more information. The JCL shows the default naming convention used in the Software AG installation materials.

  5. A valid high-level qualifier must be provided for the data set named on the CMPRINT DD statement.

    This is the data set that will be used in the registration process.

    A sequential data set is shown in the JCL; however, a PDS can be used if desired. Simply make the appropriate changes to the JCL.

  6. On the Natural LOGON statement, in place of the term <Natural-Library-Name>, substitute the actual name of the Natural library that contains the program to be registered.
  7. On the Natural LIST PROGRAM statement, in place of the term <Natural-Program-Name>, substitute the actual name of the Natural program to be registered.

After these changes have been made, execute the job.

The job should finish with condition code zero, and it should produce a data set that contains a listing of the program to be registered.

In addition to the program listing, this data set will contain certain messages from Natural. This situation is normal and completely expected.