View previous topic :: View next topic
|
Author |
Message |
kalaignar_S Warnings : 1 New User
Joined: 06 Jan 2006 Posts: 21
|
|
|
|
Hi..
I have a production JCL, Which is a daily job and its going 2 create a new ps file. For creating a new ps file how can i code disp parameter? Without changing the JCL or deleting the PS file (already created) how can i achieve the same?
Thanks
Kalaignar |
|
Back to top |
|
|
shrivatsa Warnings : 1 Active User
Joined: 17 Mar 2006 Posts: 174 Location: Bangalore
|
|
|
|
try disp=(mod,catlg,delete)
I think this answers your Question.
Please correct me if I am Wrong
Thanks
Shri |
|
Back to top |
|
|
kalaignar_S Warnings : 1 New User
Joined: 06 Jan 2006 Posts: 21
|
|
|
|
Hi..
Thanks for your reply..
If i use disp = mod...Then first day it will create new PS, during its second run it will append the records.
My requirement is used to create a new file (daily) without changing the JCL.
Thanks
Kalaignar |
|
Back to top |
|
|
shrivatsa Warnings : 1 Active User
Joined: 17 Mar 2006 Posts: 174 Location: Bangalore
|
|
|
|
Use CLIST
PROC 1 Cycle
CONTROL NOFLUSH NOMSG
FREE F(DDNAMES )
CONTROL NOMSG
ALLOC F(OFFLINE) DA (xxxx.xxx.&cycle) NEW RECFM(F B A) LRECL(133) UNIT(SYSDA) +
BLOCK(6118) SPACE(1000,1000) RETPD(6)
try this........
Pass your cycle parameter daily
like 01,02 ,03,04,05,06
it will create daily one output
Please corrcet me if I am wrong
Thanks
Shri |
|
Back to top |
|
|
kalaignar_S Warnings : 1 New User
Joined: 06 Jan 2006 Posts: 21
|
|
|
|
HI..
Thanks for your reply..
Is it possible to create "xxxx.TTT.cycle" file daily? |
|
Back to top |
|
|
shrivatsa Warnings : 1 Active User
Joined: 17 Mar 2006 Posts: 174 Location: Bangalore
|
|
|
|
Another option is you Can use GDG |
|
Back to top |
|
|
shrivatsa Warnings : 1 Active User
Joined: 17 Mar 2006 Posts: 174 Location: Bangalore
|
|
|
|
Yes its possible to create xxxx.TTT.Cycle daily |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
kalaignar_S,
First thing you can always code a step to delete the file before creating it. But if you dont want to code a DELETE step, give DISP Parameter to this file as such it'll delete it at the last step (where it is being referred) in case of NORMAL EXECUTION.
Regards,
Priyesh. |
|
Back to top |
|
|
|