IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to make a global replacement of a string using IJEFT1B?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Tue Mar 17, 2009 1:13 pm
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: 6966
Location: porcelain throne

PostPosted: Tue Mar 17, 2009 1:50 pm
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
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: 792
Location: Chennai, India

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

Hi,

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

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Mar 17, 2009 2:51 pm
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
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

Superior Member


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

PostPosted: Tue Mar 17, 2009 4:20 pm
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
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

Superior Member


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

PostPosted: Tue Mar 17, 2009 5:20 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 2
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts trying to make sense of keylists TSO/ISPF 11
No new posts file manager is doing string conversion IBM Tools 3
Search our Forums:

Back to Top