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

RC 20 in FIND command


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

Active User


Joined: 15 Nov 2005
Posts: 117
Location: Chennai, India

PostPosted: Thu Aug 06, 2009 12:49 pm
Reply with quote

this is the rexx

Code:
TRACE A                         
ADDRESS ISREDIT                 
'MACRO'                         
             "FIND PROCEDURE 8" 


this the output i am getting

Code:
      2 *-* ADDRESS ISREDIT 
      3 *-* 'MACRO'         
        >>>   "MACRO"       
        +++ RC(20) +++       
      4 *-* "FIND PROCEDURE 8"           
        >>>   "FIND PROCEDURE 8"         
        +++ RC(20) +++   


can anyone let me know what i am doing wrong to get a RC 20?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Aug 06, 2009 1:05 pm
Reply with quote

So much information in your post icon_rolleyes.gif please answer the questions below.

Are you doing this foreground or background.
How are you invoking the macro.
Is the macro stored in a library concateneated to either SYSPROC or SYSEXEC.
Have you used ALTLIB to concatenate your own library to the previous DD names.
Back to top
View user's profile Send private message
senthils

Active User


Joined: 15 Nov 2005
Posts: 117
Location: Chennai, India

PostPosted: Thu Aug 06, 2009 1:10 pm
Reply with quote

I am invoking this REXX from foreground, from command line inside a member in EDIT mode.


I am not sure about the third point. This particular REXX is stored in a library which is concatenated to SYSEXEC.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Aug 06, 2009 1:17 pm
Reply with quote

What do you enter on the command line to invoke the macro.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Aug 06, 2009 1:35 pm
Reply with quote

what about /* REXX */ as first line?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Aug 06, 2009 1:55 pm
Reply with quote

There is a big difference between the following two methods below. Please try both and see what happens.
Code:

 Command ===> macroname               
 ****** ***************************** T
 000001 /* REXX *** TO SPLIT FIXCDS REC
 000002 /*          ONLY THE FIRST OCCU
 000003 /*          TYPE 39 ERROR RECOR

And
Code:

 Command ===> tso macroname               
 ****** ***************************** T
 000001 /* REXX *** TO SPLIT FIXCDS REC
 000002 /*          ONLY THE FIRST OCCU
 000003 /*          TYPE 39 ERROR RECOR
Back to top
View user's profile Send private message
senthils

Active User


Joined: 15 Nov 2005
Posts: 117
Location: Chennai, India

PostPosted: Thu Aug 06, 2009 2:07 pm
Reply with quote

the problem was that i was entering TSO macroname and not macroname....

thanks expat and everyone for your prompt response.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Aug 06, 2009 2:20 pm
Reply with quote

dbzTHEdinosauer wrote:
what about /* REXX */ as first line?

Not really required for a macro, but I must admit for good housekeeping I tend to include it as a matter of course.
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 RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts LTJ command CA Products 4
Search our Forums:

Back to Top