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: 2547
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 RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Routing command Address SDSF to other... TSO/ISPF 2
Search our Forums:

Back to Top