On Wednesday, 10/07/2009 at 07:12 EDT, "Gentry, Stephen" 
<[email protected]> wrote:
> I?m needing to issue a vmlink command from within an assembler program.  
What I 
> would like returned in some parameter list or rc(return code) is the 
file 
> mode.  If it?s done with an rc , the rc could be 1 thru 26 corresponding 
to A 
> thru Z.
> 
> Has anyone done anything like this and if so would you be willing to 
share the 
> code?
> 
> I can do it with brute force but would prefer a more civilized approach.

In the same vein as Rob's suggestion, I would simply wrap VMLINK in 
another exec.  That exec would use the VMLINK interfaces to determine the 
filemode and translate that to a numeric.  E.g. RC=1-26 means it worked. 
RC > 1000 means VMLINK gave RC=(return code-1000).  That sort of thing.

Alan Altmark
z/VM Development
IBM Endicott

Reply via email to