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

Without changing the JCL how to create a new ps file


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

New User


Joined: 06 Jan 2006
Posts: 21

PostPosted: Mon Apr 24, 2006 12:58 pm
Reply with quote

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
View user's profile Send private message
shrivatsa
Warnings : 1

Active User


Joined: 17 Mar 2006
Posts: 174
Location: Bangalore

PostPosted: Mon Apr 24, 2006 2:25 pm
Reply with quote

try disp=(mod,catlg,delete)

I think this answers your Question.

Please correct me if I am Wrong

Thanks
Shri
Back to top
View user's profile Send private message
kalaignar_S
Warnings : 1

New User


Joined: 06 Jan 2006
Posts: 21

PostPosted: Mon Apr 24, 2006 2:29 pm
Reply with quote

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
View user's profile Send private message
shrivatsa
Warnings : 1

Active User


Joined: 17 Mar 2006
Posts: 174
Location: Bangalore

PostPosted: Mon Apr 24, 2006 2:57 pm
Reply with quote

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
View user's profile Send private message
kalaignar_S
Warnings : 1

New User


Joined: 06 Jan 2006
Posts: 21

PostPosted: Mon Apr 24, 2006 3:02 pm
Reply with quote

HI..

Thanks for your reply..
Is it possible to create "xxxx.TTT.cycle" file daily?
Back to top
View user's profile Send private message
shrivatsa
Warnings : 1

Active User


Joined: 17 Mar 2006
Posts: 174
Location: Bangalore

PostPosted: Mon Apr 24, 2006 3:03 pm
Reply with quote

Another option is you Can use GDG
Back to top
View user's profile Send private message
shrivatsa
Warnings : 1

Active User


Joined: 17 Mar 2006
Posts: 174
Location: Bangalore

PostPosted: Mon Apr 24, 2006 3:06 pm
Reply with quote

Yes its possible to create xxxx.TTT.Cycle daily
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Mon Apr 24, 2006 6:19 pm
Reply with quote

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
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 FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top