View previous topic :: View next topic
|
Author |
Message |
dophine80
New User
Joined: 26 Dec 2005 Posts: 2
|
|
|
|
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 |
|
|
rajandhla
Active User
Joined: 18 Oct 2005 Posts: 182 Location: Luton UK
|
|
Back to top |
|
|
sundaresanjs
New User
Joined: 29 May 2006 Posts: 18 Location: USA
|
|
|
|
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 |
|
|
dophine80
New User
Joined: 26 Dec 2005 Posts: 2
|
|
|
|
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 |
|
|
sundaresanjs
New User
Joined: 29 May 2006 Posts: 18 Location: USA
|
|
|
|
hai friend,
its correct step given by you.
thanks,
Regards, |
|
Back to top |
|
|
|