Need Clarification

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
breentha_d
Member
Posts: 13
Joined: Mon Dec 10, 2007 1:32 pm

Need Clarification

Post by breentha_d » Sat Dec 15, 2007 2:32 pm

Dear All,

Based on the example below which i saw in the tutorial session,

EXAMPLE JCL

Code: Select all

//MYJOB  JOB   (R345),'KRISHNA REDDY'
//STEP1  EXEC  PGM=COBPROG
//INFILE DD    DSN=TEST.GLOB.TEST.LIB,
// UNIT=SYSDA
It says:
In above example, COBPROG is executed, and a file INFILE which may reside on any of the devices which are grouped under the symbolic name SYSDA will be accessed.

I thought, the INFILE is the ddname, and the COBPROG should be in the LIB file and not in the INFILE, i am confused because i am very new to this. Pls explain to me this statement.

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Thu Dec 20, 2007 11:59 pm

load libraries can be denoted as JOBLIB or STEPLIB in the reference name. otherwise, the reference name of a dd statement refers to a SELECTed file (in COBOL). any file that is referenced by the executing program (COBOL, ASM, PL1....) needs to have a dd statement in the job to allow for allocation by jes upon execution of the job.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

breentha_d
Member
Posts: 13
Joined: Mon Dec 10, 2007 1:32 pm

Post by breentha_d » Fri Dec 21, 2007 5:03 am

dbzTHEdinosauer,


Thanks for explanation

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others