Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us