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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 1 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


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