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
 
RC 20 in FIND command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: RC 20 in FIND command
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: 8593
Location: Back in jolly old England

PostPosted: Thu Aug 06, 2009 1:05 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Aug 06, 2009 1:17 pm    Post subject:
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: 6968
Location: porcelain throne

PostPosted: Thu Aug 06, 2009 1:35 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Aug 06, 2009 1:55 pm    Post subject:
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    Post subject: Reply to: RC 20 in FIND command
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: 8593
Location: Back in jolly old England

PostPosted: Thu Aug 06, 2009 2:20 pm    Post subject:
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    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 How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts Failure after DIR command Hank Watson All Other Mainframe Topics 2 Tue Aug 29, 2017 3:14 am
No new posts Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm
This topic is locked: you cannot edit posts or make replies. rexx to create a tso command Bharath Vikraman CLIST & REXX 1 Tue Aug 08, 2017 3:32 pm

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