DD statement



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

DD statement

Postby breentha_d » Sun Dec 16, 2007 6:02 am

aDear All, Iam a learner currently, I dont undertsand the example below which i saw in the tutorial session




EXAMPLE JCL -> //MYJOB JOB (R345),'KRISHNA REDDY'
//STEP1 EXEC PGM=COBPROG
//INFILE DD DSN=TEST.GLOB.TEST.LIB,
// UNIT=SYSDA

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 that the COBPROG file is contained in the .LIB since that is the directory. Besides defining the datasets, what else is the DD statement is used for?

Pls help me, Thanks
Breentha
breentha_d
 
Posts: 29
Joined: Mon Dec 10, 2007 2:26 am
Has thanked: 0 time
Been thanked: 0 time

Re: DD statement

 

Re: DD statement

Postby dick scherrer » Sun Dec 16, 2007 8:18 am

Hello Breentha and welcome to the forums,

I dont undertsand the example below
Well, i don't really understand why this was used as an example, but i'll try to clarify what you posted.

//STEP1 EXEC PGM=COBPROG
will execute a module named COBPROG. As there is no JOBLIB or STEPLIB, the module will be executed from the "standard" or "link listed" libraries.

//INFILE DD DSN=TEST.GLOB.TEST.LIB,
// UNIT=SYSDA
points to some dataset - which you already understand.

I thought that the COBPROG file is contained in the .LIB since that is the directory
If the COBPROG module is in the named .LIB dataset, i do not know why it is also listed as a dataset in the step (which is why i made the first comment).

Does the .LIB contain the source or something else?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post