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
 

 

No TSO prefix doesn't get the input

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: No TSO prefix doesn't get the input
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: 1800
Location: UK

PostPosted: Thu Apr 28, 2016 8:31 pm    Post subject:
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: 375
Location: USA

PostPosted: Thu Apr 28, 2016 8:40 pm    Post subject: Reply to: No TSO prefix doesn't get the input
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: 1020
Location: Oostende, Belgium

PostPosted: Thu Apr 28, 2016 11:39 pm    Post subject: Re: Reply to: No TSO prefix doesn't get the input
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need input in Scheduling Benchwarmer CA Products 5 Tue Jun 06, 2017 1:44 am
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Formating the Input file sreekusr DFSORT/ICETOOL 3 Fri Feb 17, 2017 10:40 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 37 Tue Dec 06, 2016 8:04 pm


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