MVSFORUMS.com A Community of and for MVS Professionals
View previous topic :: View next topic
Author
Message
ldushkin Beginner Joined: 05 Apr 2006 Posts: 56 Topics: 20
Posted: Thu Apr 13, 2006 9:16 pm Post subject: Override Sysin Statements of File-aid in JCL
Hi all,
I used FILEAID in JCL, and I need to change some characters in control card, would like to use a PROC and override.
Can I use override in control card?
Code:
//STEP0100 EXEC PGM=FILEAID
//SYSPRINT DD SYSOUT=*
//DD01 DD DSN=D2HG.JCL,
// DISP=SHR
//SYSIN DD *
$$DD01 UPDATE MEMBERS=MCS#5T60,
EDITALL=(1,0,C'XXX',C'T60')
$$DD01 UPDATE MEMBERS=MCS#5T60,
EDITALL=(1,0,C'TODW',C'TV5B')
$$DD01 UPDATE MEMBERS=MCS#5T60,
EDITALL=(1,0,C'G0001V',C'TV5B')
I have to change T60; TV5B, TV5B
Back to top
ranga_subham Intermediate Joined: 31 Jan 2006 Posts: 255 Topics: 72
Posted: Thu Apr 13, 2006 11:08 pm Post subject:
First of all, you cannot use instream data inside a PROC. _________________ Ranga
*****
None of us is as smart as all of us - Ken Blanchard
Back to top
kolusu Site Admin Joined: 26 Nov 2002 Posts: 12367 Topics: 75 Location: San Jose
Posted: Fri Apr 14, 2006 5:24 am Post subject:
ldushkin ,
As ranga mentioned you cannot code instream data in a proc. you need to put them in a 80 byte dataset and then you can override that dataset from JCl.
ex:
Code:
//MYPROC PROC
//*
//STEP0100 EXEC PGM=FILEAID
//SYSPRINT DD SYSOUT=*
//DD01 DD DSN=D2HG.JCL,
// DISP=SHR
//SYSIN DD DSN=80 BYTE DATASET
// DISP=SHR
//*
Your 80 byte DATASET will contain this
Code:
$$DD01 UPDATE MEMBERS=MCS#5T60,
EDITALL=(1,0,C'XXX',C'T60')
$$DD01 UPDATE MEMBERS=MCS#5T60,
EDITALL=(1,0,C'TODW',C'TV5B')
$$DD01 UPDATE MEMBERS=MCS#5T60,
EDITALL=(1,0,C'G0001V',C'TV5B')
If you want to override the sysin statements in your JCL
Code:
//MYJCL EXEC MYPROC
//STEP0100.SYSIN DD *
$$DD01 UPDATE MEMBERS=MCS#5T60,
EDITALL=(1,0,C'XXX',C'XXX')
$$DD01 UPDATE MEMBERS=MCS#5T60,
EDITALL=(1,0,C'TODW',C'YYY')
$$DD01 UPDATE MEMBERS=MCS#5T60,
EDITALL=(1,0,C'G0001V',C'ZZZZ')
Hope this helps...
Cheers
Kolusu _________________ Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
www.linkedin.com/in/kolusu
Back to top
ldushkin Beginner Joined: 05 Apr 2006 Posts: 56 Topics: 20
Posted: Sat Apr 15, 2006 8:24 am Post subject:
Thank you very much to all
Back to top
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