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

how to override the parameter of concatenation


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

New User


Joined: 26 Dec 2005
Posts: 2

PostPosted: Thu Jun 01, 2006 1:57 pm
Reply with quote

hi guys, could you tell me the rule to override the parameters in the concatenation. for example i have a catalogue procedure. i want to override the parameter.

if i want to change the disp=new in file1,dsn=newfile in file2, no change in file3. what is the right result.
//proc1 proc
//step exec pgm=hello
//data1 dd dsn=file1, disp=old
// dd dsn=file2, disp=mod
// dd dsn=file3, disp-shr
//

------------------------------------------------------
i am waiting for all your suggestions


thanks
Back to top
View user's profile Send private message
rajandhla

Active User


Joined: 18 Oct 2005
Posts: 182
Location: Luton UK

PostPosted: Thu Jun 01, 2006 2:15 pm
Reply with quote

Check this post..............

ibmmainframes.com/viewtopic.php?t=11293


Regards
jai
Back to top
View user's profile Send private message
sundaresanjs

New User


Joined: 29 May 2006
Posts: 18
Location: USA

PostPosted: Thu Jun 01, 2006 3:01 pm
Reply with quote

hi dophine80,

you can use this type of code to override the dataset during concatenation.
the below code is your code.

//proc1 proc
//step exec pgm=hello
//data1 dd dsn=file1, disp=old
// dd dsn=file2, disp=mod
// dd dsn=file3, disp-shr
//

you can get the overriding in the file1 alone by the below code given which is used in the other job.

//job......
//step1 exec pgm=proc1
//step.data1 dd dsn=file5,disp=mod
dd
dd
//sysout dd sysout=*
//sysprint dd sysout=*
//syssin dd *
/*


you use this type it will work,

welcome to the comments regarding this


regards,
Back to top
View user's profile Send private message
dophine80

New User


Joined: 26 Dec 2005
Posts: 2

PostPosted: Thu Jun 01, 2006 6:01 pm
Reply with quote

thank you guys. but i still have a little bit doubt. howt do we deal with the data set not modified in the concatenation.

//proc1 proc
//step exec pgm=hello
//data1 dd dsn=file1, disp=old
// dd dsn=file2, disp=mod
// dd dsn=file3, disp=shr
//

if i do not override file2. is that should be like below
//myjob job notify=dophine80
//step1 exec porc1
//step.data1 dd dsn=newfile,disp=new
// dd
// dd dsn=file3,disp=old
------------------------------------------------------

kind regards
Back to top
View user's profile Send private message
sundaresanjs

New User


Joined: 29 May 2006
Posts: 18
Location: USA

PostPosted: Fri Jun 02, 2006 5:31 pm
Reply with quote

hai friend,

its correct step given by you.

thanks,

Regards,
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 Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Writing the output file name from a p... JCL & VSAM 7
No new posts Reference for COND parameter. JCL & VSAM 1
Search our Forums:

Back to Top