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
 

 

Find and Replace File Names in a PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
ParagChouguley

Active User


Joined: 03 Feb 2007
Posts: 175
Location: PUNE(INDIA)

PostPosted: Fri Apr 25, 2008 11:57 am    Post subject: Find and Replace File Names in a PDS
Reply with quote

Hi All,
I have got a PDS containing JCL members in it.
No of files are used in the JCLs. Now I want to change the file names in these JCLs. I do have a list of files to be name-changed, in a PS. I have list of files with which these files are to be replaced, in another PS file. The count of file names in both PS files is same. The replacement should be on 1-1 basis. ie. 1st file name should be chnaged to 1st one taken from another PS file. want it to be done using REXX.

Help appriciated.
--Parag
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10257
Location: italy

PostPosted: Fri Apr 25, 2008 12:09 pm    Post subject: Reply to: Find and Replace File Names in a PDS
Reply with quote

Quote:
want it to be done using REXX

by whom icon_question.gif icon_smile.gif

http://catb.org/~esr/faqs/smart-questions.html
read and meditate

For what reason You think that doing it in rexx is better than using some other approach ?

IPOUPDTE for example (is there, it works, no coding ,no problems)
Back to top
View user's profile Send private message
ParagChouguley

Active User


Joined: 03 Feb 2007
Posts: 175
Location: PUNE(INDIA)

PostPosted: Fri Apr 25, 2008 1:57 pm    Post subject:
Reply with quote

Hi enrico-sorichetti,

Quote:

For what reason You think that doing it in rexx is better than using some other approach ?

IPOUPDTE for example (is there, it works, no coding ,no problems)


Both the approaches would be fine. I will put them in front of client and let them decide which one to use.

I said it REXX because, I didn't know abt this utility. One more reason for using REXX could be that REXX code can be chnaged as per requirement in future.
--Parag
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10257
Location: italy

PostPosted: Fri Apr 25, 2008 2:21 pm    Post subject: Reply to: Find and Replace File Names in a PDS
Reply with quote

Let me share my experience on customer/consultamt/third party developers relations
( remember anyway I do know nothing about Your environment )

it' a good thing for IT professionals to have personal tools to help them being more comfortable with their day to day tasks

once upon a time I used to leave them to the customers,
after a lots of meditations I decided to stop it,
personal tools are personal, built on the individual way of working,
quick and dirty, minimal error handling, ...

sharing them too much means to make them usable by everybody,
it takes time and often is outside the practices and standards used

it might be ok to share a throw away tool with the customer,
not so if it could became a procedural thing..

the point about Your request ...
if the change is a "once done forget about it" ok to write something specific ( quick and very dirty )

if the task is a ripetitive one, then it would be better to go for something with formal specifications attached

the deliverable left to the customers should the one specified in the contract ..
nothing less, ( it would be a contract breaching )

but most important nothing more ( much worse from a legal point of view )

agreed deliverables go thru quality assurance ( sometimes from independ auditors )

other things do not, and from a strictly legal point of view You might be held responsible for damages

just a few thoughts on tool sharing
Back to top
View user's profile Send private message
ParagChouguley

Active User


Joined: 03 Feb 2007
Posts: 175
Location: PUNE(INDIA)

PostPosted: Fri Apr 25, 2008 2:37 pm    Post subject:
Reply with quote

Hi enrico-sorichetti,
Thanks a lot for your views on this ! They surely will be useful to me ! icon_biggrin.gif

--Parag
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm


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