Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to make a global replacement of a string using IJEFT1B?

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

New User


Joined: 17 Mar 2009
Posts: 11
Location: PUNE,India

PostPosted: Tue Mar 17, 2009 1:07 pm    Post subject: How to make a global replacement of a string using IJEFT1B?
Reply with quote

I have been trying to execute this JCL,

Code:
//UPDATE1 EXEC PGM=IKJEFT1B,COND=(4000,LT)               
//SYSTSPRT DD SYSOUT=*                                 
//SYSTSIN  DD *                                         
EDIT  'CPPDEV.RR16388.REXX(BIGDAT)' OLD CNTL NONUM     
F 'VERY'                                               
C * /VERY/SERY/                                         
SAVE                                                   
END                                                     
/*                                                     
//*           

Problems I'm facing:
1) Replacement is occurring for the first occurrence..i need to change all the occurrences..

Kindly explain the change to be made in the code as in am I missing any necessary parameter which is inhibiting me to make a global replacemt of the string

What is the way of accessing the dataset whose org is Direct Access?


Code:
General Data                          Current Allocation       
 Volume serial . . . : D8RT1O          Allocated blocks  . : 21
 Device type . . . . : 3390            Allocated extents . : 1
 Organization  . . . : DA                                     
 Record format . . . : F                                       
 Record length . . . : 2048                                   
 Block size  . . . . : 2048                                   
 1st extent blocks . : 21                                     
 Secondary blocks  . : 1                                       
                                                               
 Creation date . . . : 2008/10/24                             
 Referenced date . . : 2009/03/17                             
 Expiration date . . : ***None***



Edited: Please use BBcode when You post some code/error, that's rather readable, Thanks... Anuj
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: Tue Mar 17, 2009 1:13 pm    Post subject:
Reply with quote

You need the ALL parameter
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Tue Mar 17, 2009 1:50 pm    Post subject:
Reply with quote

and remove the FIND. you are not checking the rc, so drop the line.
Back to top
View user's profile Send private message
PKONDURI

New User


Joined: 17 Mar 2009
Posts: 11
Location: PUNE,India

PostPosted: Tue Mar 17, 2009 2:35 pm    Post subject: Reply to: How to make a global replacement of a string using
Reply with quote

C ALL parameter is not even making change in one occurence...
C * 9999 is making a change only in first occurrence..
Kepping and removing FIND parameter is not making any difference...

Thanks for such any early response..I appreciate your time!
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 788
Location: Chennai, India

PostPosted: Tue Mar 17, 2009 2:43 pm    Post subject:
Reply with quote

Hi,

Please look at this thread.
http://ibmmainframes.com/viewtopic.php?t=37671
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Mar 17, 2009 2:51 pm    Post subject:
Reply with quote

Or simply read the fine manual.

O.
Back to top
View user's profile Send private message
PKONDURI

New User


Joined: 17 Mar 2009
Posts: 11
Location: PUNE,India

PostPosted: Tue Mar 17, 2009 4:03 pm    Post subject: Reply to: How to make a global replacement of a string using
Reply with quote

Thanks all!
My query is solved...
My first post has been closed successfully!
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Mar 17, 2009 4:20 pm    Post subject:
Reply with quote

Glad to hear that it's working . . . icon_smile.gif.

For the benefit of others, please share the solution used.
Back to top
View user's profile Send private message
PKONDURI

New User


Joined: 17 Mar 2009
Posts: 11
Location: PUNE,India

PostPosted: Tue Mar 17, 2009 4:57 pm    Post subject:
Reply with quote

Mistakes i commited in my script:
1)i was using IKJEFT1B instead of IKJEFT01
differences between them can be seen here

2)Syntax for issuing a multiple change command is
C * 99999 =source=target= ALL
This I got from the find manual posted by ofer71
according to the find manual C 'source' 'target' all has to work but somehow it did not work!
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Mar 17, 2009 5:20 pm    Post subject:
Reply with quote

Hi,

Thnaks for letting us know the sloution - I've edited the link in your post to link to right thread. . .
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 line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts String after '.' (period) is not copy... balaji81_k SYNCSORT 6 Wed Aug 23, 2017 9:35 pm
No new posts change string before sertan string anatol DFSORT/ICETOOL 8 Tue Aug 15, 2017 5:43 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us