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
 
String containing command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
Kamil Tluczek

New User


Joined: 06 Feb 2014
Posts: 8
Location: Poland

PostPosted: Sat Aug 02, 2014 9:36 pm    Post subject: String containing command
Reply with quote

Hello,

I don't have much experience in REXX programming, but maybe you will be able to help me. I want to assing a following string to variable:

Code:
$cntl = " REPRO IFILE(LOG) ODS('" || $outdsn || "')"


The problem is that when I exec the code REXX treats that string as a command and executes it. How can I avoid this string to be treated as a command?

I didn't find the answer to my question on this forum.
Back to top
View user's profile Send private message

Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2086
Location: Silicon Valley

PostPosted: Sat Aug 02, 2014 10:16 pm    Post subject: Reply to: String containing command
Reply with quote

That line, as coded, will not be executed as a command.

Perhaps something else in your program causes it to execute. Can you show us the program, and a trace?
Back to top
View user's profile Send private message
Kamil Tluczek

New User


Joined: 06 Feb 2014
Posts: 8
Location: Poland

PostPosted: Sat Aug 02, 2014 11:07 pm    Post subject:
Reply with quote

Thank you Pedro. You are right, I run trace and found out that the problematic line was:

Code:
queue $cntl
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 line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
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 Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 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

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