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
 

 

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: 2038
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: 2038
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 find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts RC 20 for Address ISPEXEC "ISRED... pkmurali CLIST & REXX 3 Sun Apr 16, 2017 11:30 pm
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am


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