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
 

 

Changing a particular string in the members of a PDS in JCL.

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

New User


Joined: 23 Mar 2006
Posts: 34

PostPosted: Sun Sep 17, 2006 12:13 pm    Post subject: Changing a particular string in the members of a PDS in JCL.
Reply with quote

Hi Everyone,
Can anyone suggest whether there is any method to change a particular string in all the members of a PDS in JCL.
For Example:::
AAA.BBB.CCC has three members in it namely Member1,Member2,Member3

All the members are having a particular string APPLE in any place in it,i want to change it as ORANGE and the result should be stored in another
PDS DDD.EEE.FFF

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

Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Sun Sep 17, 2006 8:19 pm    Post subject: Re: Changing a particular string in the members of a PDS in
Reply with quote

What have you done so far? It would be helpful to know where specifically you need assistance. Usually, the process of changing a text field from one value to another, especially when it's position in the data is unknown, is best left to an editor.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 743
Location: Germany

PostPosted: Mon Sep 18, 2006 5:00 pm    Post subject:
Reply with quote

Hi !

You also ca use the old IBM ultility IPOUDATE.
It's not a third party utility, its normaly everywhere in an IBM environment.

With check-parameter you can first control results without updates.

Regards, UmeySan

Example:

//UPDAT1 EXEC PGM=IPOUPDTE,
//* PARM='UPDATE'
// PARM='CHECK'
//?INST1 DD DISP=SHR,DSN=IE31000.ISPF.ISPCLIST
//*INST2 DD DISP=SHR,DSN=IE31000.ISPF.ISPPLIB
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
BWS8<MT81<
BWS9<MT91<
//
S=BWS8<S=MT81<
S=BWS9<S=MT91<
SYSAFF=BWS8<S=MT81<
SYSAFF=BWS9<S=MT91<
//
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
This topic is locked: you cannot edit posts or make replies. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm
No new posts How to insert a lengthy string havin... vidyaa DB2 7 Thu Aug 25, 2016 5:20 pm
No new posts Which function does the Ampersand (&a... Andi1982 PL/I & Assembler 3 Wed Aug 24, 2016 2:05 pm
No new posts Need a help how to replace a string i... gurunath82 CLIST & REXX 12 Tue Jul 26, 2016 11:43 pm


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