MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

JCL

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
kalaignar_rs
Beginner


Joined: 08 Apr 2006
Posts: 3
Topics: 3

PostPosted: Mon Apr 24, 2006 4:14 am    Post subject: JCL 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?

If i use disp = mod...Then first day it will create new PS, during its second run it will append the records.
My requirement i- create a new PS file (daily) without changing the JCL.

Thanks
Kalaignar
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Apr 24, 2006 4:57 am    Post subject: Reply with quote

kalaignar_rs,

1. Please follow the forum rules.
2. Do not code a topic title with forum name such as JCL
3. Please Post it in the right forum. you posted a JCL related question in DB2 forum.

To answer your question code an IEFBR14 step as the first step to delete the dataset and in the next step create the dataset as usual with disp=(new,catlg,delete)

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Mon Apr 24, 2006 9:05 am    Post subject: Reply with quote

Code DISP=OLD and it will rewrite the file each day.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Wed Apr 26, 2006 1:33 am    Post subject: Reply with quote

Kalaignar_rs,

Quote:

Without changing the JCL or deleting the PS file (already created) how can i achieve the same?


What is forcing you to lay such a restriction ? Kolusu's solution is the usual standard way of coding a JCL/PROC.

You can follow Bill's suggestion, but you must create the PS (empty / with some data) somehow, even before the job runs for the first time.

If you can give us a detailed information of your actual requirement, we can suggest better alternatives.

Thanks,
Phantom
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group