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
 
flow of find command in the macro

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
maridawson

New User


Joined: 24 Jun 2008
Posts: 59
Location: chennai

PostPosted: Thu Jan 29, 2009 5:04 pm    Post subject: flow of find command in the macro
Reply with quote

I'm coding a macro to find a specific occurence of a string using find command. Thing is , the string I have to search is some lines above the current cursor position. so I set the cursor position to the first line of the macro and gave a find command to search the string. It is giving a RC '4' , however after the execution of the macro ..... the string that I used to find is highlighted. i dont understand. please help.
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Jan 29, 2009 5:17 pm    Post subject:
Reply with quote

Try MacroSpy. It might be useful in such situation.

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

Senior Member


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

PostPosted: Thu Jan 29, 2009 9:46 pm    Post subject: Reply to: flow of find command in the macro
Reply with quote

Show us your macro.
Back to top
View user's profile Send private message
maridawson

New User


Joined: 24 Jun 2008
Posts: 59
Location: chennai

PostPosted: Fri Jan 30, 2009 10:34 am    Post subject:
Reply with quote

pgm:
string3 string1
string2

macro:
find string1 first
instructions
find string2 next
instructions
find string3 next
instructions.

I am getting a rc of 4 at the third find command. Also i like to know whether it is possible to give 2 different labels for a same line?
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Fri Jan 30, 2009 10:05 pm    Post subject: Reply to: flow of find command in the macro
Reply with quote

FIND NEXT starts from the current cursor location. Your previous FIND commands have moved the cursor beyond the text you are now looking for.

I suggest using FIND ALL to find it anywhere. OR use two successive FIND instructions. The first may take you to the end of the file and the second will wrap from the top. Or set the cursor to the first list before doing each FIND.
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: Sat Jan 31, 2009 2:43 am    Post subject:
Reply with quote

Or FIND FIRST ???
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 MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts exec macro in the end of edit anatol CLIST & REXX 8 Fri Sep 22, 2017 5:10 am
No new posts How to Run Rexx Macro? Kalaivignesh CLIST & REXX 5 Fri Sep 01, 2017 9:08 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm

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