On Sun, 7 Dec 2014 08:22:27 +0100, jan de decker <[email protected]> wrote:

>Hi list,
>
>I have a problem with AXRCMD returning not all the lines of a JES2 display
>command.
>

J@n,

The response from your $DPROCLIB command is actually several multi-line WTO's.  
If you look at column 1 of the messages from your $DPROCLIB command in the 
syslog, you'll see the message type flags.  M = Multiline, D=Data line, E=End.  

You need to issue AXRCMD more times to get all the responses.



According to: MVS Programming: Authorized Assembler Services Guide, 
SA22-7608-16:

When command text is specified, AXRCMD invokes the MGCRE macro to issue         
   
the command. Once the command is successfully issued, AXRCMD will retrieve      
   
the command response. Most commands will issue the command response as a        
   
multi-line WTO. However, there are some commands that return the response       
   
in a number of distinct WTOs. In order to obtain all the command responses      
   
returned in distinct WTOs, the AXRCMD command can be reissued without any       
   
specified command until there are no more responses to obtain. For              
   
example, CmdResult=AXRCMD(,OutputVar.,Time). A return code of 4 in              
   
CmdResult indicates that there are currently no more responses to be            
   
obtained, although the command may still be providing responses.                
   

Hope this helps

Dana

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to