PreviousNext
Help > Development > W-Language Functions for AS/400 > Program and Procedure calls > ASRtvResult > Examples > 1) Retrieve job attributes.
1) Retrieve job attributes.


CmdLine
is a string

CmdLine = "RTVJOBA USER(&USER) USRLIBL(&USRLIB) SYSLIBL(&SYSLIB) CURLIB(&CURL)"

 

ASRtvCall(CmdLine)

 

sResult is a string

sResult = ASRtvResult ("RC")

IF sResult = "0" THEN

sUser=ASRtvResult("user")

sUserlib= ASRtvResult ("usrlib")

sSyslib= ASRtvResult ("syslib")

sCurl= ASRtvResult ("curl")

END