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 

iebcopy in a jcl procedure

 
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
ds390
Beginner


Joined: 23 Jan 2007
Posts: 82
Topics: 39

PostPosted: Fri Jul 06, 2007 7:04 pm    Post subject: iebcopy in a jcl procedure Reply with quote

Hi,

Here is my JCL
Code:
//CMPLNK         JOB CLASS=B,MSGLEVEL=(1,1),MSGCLASS=B,         
//         NOTIFY=&SYSUID                                       
//CMPPRC         PROC                                           
//STEP1          EXEC IGYWCL,PGMLIB=TEST.SRC.OBJ,GOPGM=&TNAME   
//COBOL.SYSIN    DD   DSN=TEST.SRC.COBOL(&TNAME),DISP=SHR       
//COBOL.SYSLIB   DD DUMMY                                       
//COBOL.STEPLIB  DD DSNAME=IGY330.SIGYCOMP,DISP=SHR             
//STEP2          EXEC PGM=IEBCOPY                               
//SYSPRINT       DD SYSOUT=*                                   
//DDI1           DD DSN=TEST.SRC.OBJ,DISP=SHR                   
//DDO1           DD DSN=TEST.RUN.OBJ,DISP=SHR                   
//SYSIN          DD  *                                         
  COPY OUTDD=DDO1,INDD=DDI1                                     
  SELECT MEMBER=(&TNAME)                                       
/*                                                             
//               PEND                                           
//RUNCMP         EXEC CMPPRC,TNAME='T030'                       


When submit, it says 31 IEFC601I INVALID JCL STATEMENT. Line 31 is SYSIN DD *. What's the solution?
Back to top
View user's profile Send private message
CraigG
Intermediate


Joined: 02 May 2007
Posts: 202
Topics: 0
Location: Viginia, USA

PostPosted: Fri Jul 06, 2007 7:40 pm    Post subject: Re: iebcopy in a jcl procedure Reply with quote

You can not have dd * in a proc, not even an inline proc. And the SSELECT MEMBER=(&TNAME) is not a JCL statement so &TNAME will not be resolved.
Back to top
View user's profile Send private message
ds390
Beginner


Joined: 23 Jan 2007
Posts: 82
Topics: 39

PostPosted: Fri Jul 06, 2007 10:00 pm    Post subject: Reply with quote

JCL needs some enhancement then.
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