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

Problem while using C ALL


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Paul1983

New User


Joined: 08 Jul 2008
Posts: 37
Location: bangy

PostPosted: Fri Aug 01, 2008 8:11 pm
Reply with quote

How do we check for the return code ISREDIT ? Actually I want to change some literals say 'A' to 'B' after Procedure division. I'm finding for the Procedure division and then doing a C ALL. But its changing all the literals 'A' in the program. I want only the one that's occuring after PROCEDURE DIVISION.

Thanks,
Paul
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Fri Aug 01, 2008 9:57 pm
Reply with quote

I don't have an example, but you can assign line labels and then specify the range on the change command.

find PROCEDURE and assign label .A
go to last line and assign label .B
do a C 'A' 'B' ALL .A .B
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Fri Aug 01, 2008 9:59 pm
Reply with quote

CHANGE ALL, really means change all. I am not sure why you would expect it to automatically skip some.

Use labels to narrow the scope of the change, something like this:
Code:
"macro"
"FIND 'PROCEDURE DIVISION'"
"C  'A' 'B'   .zcsr .zlast  ALL"
Back to top
View user's profile Send private message
Paul1983

New User


Joined: 08 Jul 2008
Posts: 37
Location: bangy

PostPosted: Sat Aug 02, 2008 4:58 pm
Reply with quote

Thanks a lot for the information

Thanks & Regards,
Paul
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Job scheduling problem. JCL & VSAM 9
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
No new posts Need to add field to copybook, proble... COBOL Programming 14
Search our Forums:

Back to Top