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

No TSO prefix doesn't get the input


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
boyti ko

New User


Joined: 03 Nov 2014
Posts: 78
Location: Malaysia

PostPosted: Thu Apr 28, 2016 3:31 pm
Reply with quote

Hi,

I have this rexx program to get and display the input.

Code:
/* REXX */                       
ADDRESS ISREDIT "MACRO NOPROCESS"
PARSE ARG INPUT                 
SAY 'THIS IS MY INPUT:' INPUT   
RETURN                           


I'm confused as to why when I invoke the program using:
Code:
TSO MYPROG myInput

Output:
THIS IS MY INPUT: myInput
***                     


But when invoke without the TSO:

Code:
MYPROG myInput

Output:
THIS IS MY INPUT:
***             


Can help me point what am I missing to get the same results as with the TSO prefix.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Thu Apr 28, 2016 8:31 pm
Reply with quote

Possibly something to do with it saying it is a macro but you are not invoking it as a macro.
Back to top
View user's profile Send private message
RahulG31

Active User


Joined: 20 Dec 2014
Posts: 446
Location: USA

PostPosted: Thu Apr 28, 2016 8:40 pm
Reply with quote

You put TSO in front then that is a 'Command' and Not a Macro.

As you have specified
Code:
'ADDRESS ISREDIT "MACRO NOPROCESS"'
that makes it a Macro.

If you need to pass argument to an edit macro then you do:
Code:
'ADDRESS ISREDIT "MACRO (ARG1, ARG2) NOPROCESS"'


You don't put TSO infront of an edit macro.

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

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Thu Apr 28, 2016 11:39 pm
Reply with quote

RahulG31 wrote:
You don't put TSO infront of an edit macro.

Unless you know what your doing, and as far as the TS is concerned, he's obviously totally clueless when it comes to that.
Back to top
View user's profile Send private message
boyti ko

New User


Joined: 03 Nov 2014
Posts: 78
Location: Malaysia

PostPosted: Fri Apr 29, 2016 8:18 am
Reply with quote

Hello,

Thank you for all your reply especially to RahulG31 for pointing it out.
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts force tablespace using LISTDEF input DB2 1
No new posts Two input files & writing counter... DFSORT/ICETOOL 12
No new posts Use input file with OMIT rcd keys? DFSORT/ICETOOL 15
Search our Forums:

Back to Top