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

Strange EXEC function call in z/VM


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

Active Member


Joined: 01 Sep 2015
Posts: 712
Location: Denmark

PostPosted: Wed Oct 05, 2016 2:07 pm
Reply with quote

Hi, I've started looking at z/VM and came across this, in my opinion, rather strange call:
Code:
st1 = "/EXEC ABC "||fn ft fm ||"(/"
"PIPE Stem s1.",                                                 
"| Spec "st1" 1 1-4 nw",                                           
"| > WORK FILE Z",                                                   
"| CMS"   


The program ABC does not return a value, it just does an EXIT, so how do 'st1' get set and to what? I'm also not quite sure what the slashes around the EXEC ABC are doing. No GLOBALVs that I can see.
I have checked both the VM REXX User's Guide and the zVM REXX Language Reference, but didn't find an explanation there.
My apologies is this is basic VM stuff, but I haven't touched VM for ages.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Oct 05, 2016 2:19 pm
Reply with quote

Code:
st1 = "/EXEC ABC "||fn ft fm ||"(/"


is just a plain REXX assignment statement
Back to top
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 712
Location: Denmark

PostPosted: Wed Oct 05, 2016 2:50 pm
Reply with quote

That's embarrassing - of course it is. But now I see what's going on, thanks
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Oct 05, 2016 5:16 pm
Reply with quote

well sometimes You have to look twice at things to see what is going on,
as I had to in this case icon_wink.gif
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 Calling an Open C library function in... CICS 1
No new posts JCL EXEC PARM data in C Java & MQSeries 2
No new posts DATE2 function SYNCSORT 15
No new posts Help on PL/I jsonPutValue function PL/I & Assembler 8
No new posts Error while running web tool kit REXX... CLIST & REXX 5
Search our Forums:

Back to Top