IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to pass parameters in SYSIN DD


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
stunnerguy

New User


Joined: 17 Jun 2009
Posts: 1
Location: pune

PostPosted: Wed Jun 17, 2009 7:44 pm
Reply with quote

Hi,

I have a specific requirement to pass a current date inside a VSAM cluster for IDCAMS.below is my jcl:

Code:
//B905007  EXEC  PGM=IDCAMS,                   
//            REGION=4000K                     
//SYSOUT   DD SYSOUT=*                         
//SYSPRINT DD SYSOUT=*                         
//*                                             
//ELCODEIN DD DSN=PV01.B903000.ELCODE.NONPROD, 
//            DISP=SHR   
//SYSIN    DD*
     DEFINE CL (NAME(TOLLNA.T.B903000.ELCODE.NONPROD.C&DATE01.01) -   
          KEYS(12,0) -                                           
          VOLUMES(*) -                                           
          RECSZ(80,80) -                                         
          FSPC(0,25) -                                           
          CYL(27,1) -                                             
          NOREUSE -                                               
          BUFFERSPACE(13000) -                                   
          REPLICATE -                                             
          SPEED -                                                 
          OWNER('APPL-MS') -                                     
          IMBED) -                                               
    DATA (NAME(TOLLNA.T.B903000.ELCODE.NONPROD.C&DATE01.01.DAT) -
          OWNER('APPL-MS')) -                                     
      IX (NAME(TOLLNA.T.B903000.ELCODE.NONPROD.C&DATE01.01.IND) -
          OWNER('APPL-MS'))                               



I want to pass the DATE01 parameter from JCl....cureently i am getting an error as DATASET SYNTAX INVALID
Can anyone suggest me how i can resolve this problem? Please help.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jun 17, 2009 7:48 pm
Reply with quote

Please search the forum for similar topics - has been discussed to within an inch of its life.
Back to top
View user's profile Send private message
r2k1984

New User


Joined: 21 Jun 2005
Posts: 69
Location: chennai

PostPosted: Thu Jun 18, 2009 7:10 pm
Reply with quote

In the previous step write the file name with date parameter in sort and use the file in the next step..

hope it will help you
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
No new posts Injecting HTTPHEADER parameters in th... PL/I & Assembler 0
Search our Forums:

Back to Top