MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help needed in using INCLUDE members - JCL ERROR

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
kris_mf
Beginner


Joined: 07 Feb 2005
Posts: 8
Topics: 6
Location: Chennai

PostPosted: Fri Feb 18, 2005 1:23 am    Post subject: Help needed in using INCLUDE members - JCL ERROR Reply with quote

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
View user's profile Send private message
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Fri Feb 18, 2005 2:26 am    Post subject: Reply with quote

Where is your // JCLLIB ORDER= ?
How is the system to know that it should look in your library otherwise?
Back to top
View user's profile Send private message Visit poster's website
kris_mf
Beginner


Joined: 07 Feb 2005
Posts: 8
Topics: 6
Location: Chennai

PostPosted: Fri Feb 18, 2005 2:35 am    Post subject: Reply with quote

hi,
I've used the jcllib order : I haven't writen the entire jcl here....

// JCLLIB ORDER=(E2CTSS2.IIRS.PDSMEM)
Back to top
View user's profile Send private message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Fri Feb 18, 2005 8:18 am    Post subject: Reply with quote

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
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Fri Feb 18, 2005 8:30 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group