Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Without changing the JCL how to create a new ps file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Without changing the JCL how to create a new ps file
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: 171
Location: Bangalore

PostPosted: Mon Apr 24, 2006 2:25 pm    Post subject: Re: JCL
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    Post subject: Re: JCL
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: 171
Location: Bangalore

PostPosted: Mon Apr 24, 2006 2:57 pm    Post subject:
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    Post subject:
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: 171
Location: Bangalore

PostPosted: Mon Apr 24, 2006 3:03 pm    Post subject:
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: 171
Location: Bangalore

PostPosted: Mon Apr 24, 2006 3:06 pm    Post subject:
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: 1452
Location: Chicago, IL

PostPosted: Mon Apr 24, 2006 6:19 pm    Post subject: Re: Without changing the JCL how to create a new ps file
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us