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

String containing command


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Sat Aug 02, 2014 10:16 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Cobol code- to find a string in a str... COBOL Programming 3
No new posts BNDS and Overlay command TSO/ISPF 9
No new posts How to replace a string dynamically i... CLIST & REXX 16
No new posts Control M features to check string in... Compuware & Other Tools 1
No new posts Command line placement in DB2I panels TSO/ISPF 2
Search our Forums:

Back to Top