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
 
Strange EXEC function call in z/VM

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

Active User


Joined: 01 Sep 2015
Posts: 171
Location: Switzerland

PostPosted: Wed Oct 05, 2016 2:07 pm    Post subject: Strange EXEC function call in z/VM
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10352
Location: italy

PostPosted: Wed Oct 05, 2016 2:19 pm    Post subject: Reply to: Strange EXEC function call in z/VM
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 User


Joined: 01 Sep 2015
Posts: 171
Location: Switzerland

PostPosted: Wed Oct 05, 2016 2:50 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10352
Location: italy

PostPosted: Wed Oct 05, 2016 5:16 pm    Post subject: Reply to: Strange EXEC function call in z/VM
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    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 ISREDIT Macro is not returning back t... nico_neoz CLIST & REXX 4 Sat Nov 18, 2017 7:40 pm
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts exec macro in the end of edit anatol CLIST & REXX 8 Fri Sep 22, 2017 5:10 am
No new posts What is the Extract Function in JCL dharmaraok JCL & VSAM 3 Wed Jun 14, 2017 9:12 am
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am

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