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
 

 

To Change a part of a filename in parms

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
himanshuvyas

New User


Joined: 30 Apr 2007
Posts: 2
Location: India

PostPosted: Thu May 03, 2007 1:12 pm    Post subject: To Change a part of a filename in parms
Reply with quote

Hi All,

I want to change the name of the file partly in parm called by a job. i need to do it manually everytime, there are around 60 parms. Is there any way to run one job which changes the name of the file in all the parms? The length of the file varies in every parm, but the part of the filename which i want to change always begins with WO.

Help me out regarding this.

ex: aaaa.bbbb.cccc.WO031206

everytime i need to change the date manually


Thanks
Back to top
View user's profile Send private message

agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 685
Location: Earth

PostPosted: Thu May 03, 2007 1:19 pm    Post subject:
Reply with quote

As per my understanding, you want to do changes in multiple files at once.
Please rephrase your question if you want something else.
An example will be bonus for us to understand your requirement easily.
Back to top
View user's profile Send private message
himanshuvyas

New User


Joined: 30 Apr 2007
Posts: 2
Location: India

PostPosted: Thu May 03, 2007 1:25 pm    Post subject: Re: To Change a part of a filename in parms
Reply with quote

Yes you are right abhijit. Thats what i want to do
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu May 03, 2007 2:47 pm    Post subject:
Reply with quote

Code:

//PROCNAME PROC ABC=
//*
//STEP9999 EXEC PGM=whatever
//INFILE   DD DSN=ABC.DEF.WO&ABC
//

And for the EXEC

//RUNSTEP  EXEC PROCNAME,ABC=whatever
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 685
Location: Earth

PostPosted: Thu May 03, 2007 3:27 pm    Post subject:
Reply with quote

Expat,
I think OP is having this at his site already. He now wants to change parameter in number of jcls.
I will try to write edit macro in such situation.
Otherwise FILE-AID SEARCH/UPDATE is good enough for 60 jcls.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu May 03, 2007 3:30 pm    Post subject:
Reply with quote

Not be done via a scheduling package ?
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 Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm
No new posts How to change dataset attributes of m... ignich7 JCL & VSAM 3 Thu Jul 21, 2016 9:17 pm
No new posts GDG vsersion number change Raghu navaikulam JCL & VSAM 5 Fri May 27, 2016 4:49 pm
No new posts Change Data Capture Ron Klop DFSORT/ICETOOL 14 Fri Apr 15, 2016 2:56 pm
No new posts To change double quotes into csv read... Robert Sample COBOL Programming 3 Fri Feb 19, 2016 8:13 am


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