View previous topic :: View next topic |
Author |
Message |
kris_mf Beginner
Joined: 07 Feb 2005 Posts: 8 Topics: 6 Location: Chennai
|
Posted: Fri Feb 18, 2005 1:23 am Post subject: Help needed in using INCLUDE members - JCL ERROR |
|
|
Hi,
Could you please help me in solving the problem.?
I've created a PDS member using IEBGENER as :
Code: |
//S35S EXEC PGM=IEBGENER
//SYSUT1 DD DSN=TST.CTS.IDCAMS.FMT.SPLIT1,DISP=SHR
// DD DSN=TST.CTS.IDCAMS.FMT.SPLIT2,DISP=SHR
//SYSUT2 DD DSN=E2CTSS2.IIRS.PDSMEM,DISP=(MOD,KEEP)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
GEN1 GENERATE MAXNAME=1,MAXGPS=1
MEM1 MEMBER NAME=MEMBER1
|
The member MEMBER1 has to be created dynamically by this utitliy and loads the SYSUT1 files into the MEMBER1
down the steps I am using the same include member in sort step as :
Code: |
//S45S EXEC PGM=SORT
//INCLUDE INCLUDE MEMBER=(MEMBER1)
//SORTOUT DD DSN=TST.CTS.SAMPLE.TEST1,
// DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=237,BLKSIZE=27966),UNIT=VTS1
//SYSOUT DD SYSOUT=*
//SORTMSG DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
/*
|
The problem is the member MEMBER1 is a new member,created dynamically and used in the sort step later. When I ran the job its giving JCL Eroor . Member name MEMBER1 not found.
Please help me in solving this problem.
Thanks,
Kris |
|
Back to top |
|
 |
warp5 Intermediate

Joined: 02 Dec 2002 Posts: 429 Topics: 18 Location: Germany
|
Posted: Fri Feb 18, 2005 2:26 am Post subject: |
|
|
Where is your // JCLLIB ORDER= ?
How is the system to know that it should look in your library otherwise? |
|
Back to top |
|
 |
kris_mf Beginner
Joined: 07 Feb 2005 Posts: 8 Topics: 6 Location: Chennai
|
Posted: Fri Feb 18, 2005 2:35 am Post subject: |
|
|
hi,
I've used the jcllib order : I haven't writen the entire jcl here....
// JCLLIB ORDER=(E2CTSS2.IIRS.PDSMEM) |
|
Back to top |
|
 |
SureshKumar Intermediate
Joined: 23 Jan 2003 Posts: 211 Topics: 21
|
Posted: Fri Feb 18, 2005 8:18 am Post subject: |
|
|
Kris_mf,
The JCL attributes are resolved at the start of job, by creating a new include card instream will not help. Create the include mem in one job and run the rest of the steps in a seperate job - you can have a job trigger or submit thru intrdr. |
|
Back to top |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Fri Feb 18, 2005 8:30 am Post subject: |
|
|
You'd have to make sure that member MEMBER1 exists before the job is submitted for execution. You can change the contents dynamically. |
|
Back to top |
|
 |
|
|