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
 

 

Problem while using C ALL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Problem while using C ALL
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    Post subject:
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

Senior Member


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

PostPosted: Fri Aug 01, 2008 9:59 pm    Post subject: Reply to: Problem while using C ALL
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


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