I have a main program in a pds i.e a.b.c and sub program is in a.b.d.The question is how would be the dd statement

Showing Answers 1 - 2 of 2 Answers

Sowmya

  • Oct 18th, 2005
 

The format for the  DD statement would be same for main program or subprogram. The only difference is when specifying DSN name for main program it will be //step name  DD  DSN=userid.name of directory.PDS file and for subdirectory //stepname DD DSN=userid.name of directory.PDSfile.member file.

  Was this answer useful?  Yes

Vinod Maanju

  • Dec 30th, 2005
 

If you r calling your sub pgm dynamically then DD stmt would be://SETP01 exec IGYWCL//COBOL.SYSIN DD DSN= NAME OF PDS(MAIN PROGRAM //LKED.SYSLMOD DD DSN= PDS NAME FOR LOAD MODULE//STEPLIB DD DSN=( NAME OF PDS WHICH CONTAINS THE LOAD MODULE OF SUB PGM) FOR STATIC CALL //STEP01 EXEC IGYWCL //COBOL.SYSIN DD DSN= NAME OF PDS(MAIN PROGRAM //LKED.SYSLMOD DD DSN= PDS NAME FOR LOAD MODULE//LKED.SYSLIB DD DSN=( NAME OF PDS WHICH CONTAINS THE LOAD MODULE OF SUB PGM)

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions