IBM Version 4 Universal Remote User Manual


 
C
C CALL QWDRJOBD
C PARM QWDD1
C PARM RCVLEN
C PARM FORMAT
C PARM LFNAM
C PARM QUSEC
C
Cᑍ If no bytes available, API was successful; print HOLD value
C
C IF QUSBAVL = 
C EXCEPT GOOD
C ELSE
C
Cᑍ If some bytes available, API failed; print Error message ID
C
C IF QUSBAVL > 
C EXCEPT BAD
C END
C END
C
Cᑍ End of program
C
C EVAL ᑍINLR = '1'
C RETURN
C
Cᑍ End of MAINLINE
Cᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
O
OQPRINT E GOOD 1 6
O 'HOLD value - '
O QWDHJQ
OQPRINT E BAD 1 6
O 'Failed. Error ID - '
O QUSEI
Accessing a Field Value (Initial Library List)—ILE C Example
Refer to “Accessing a Field Value (Initial Library List)—OPM RPG Example” on
page 3-19 for the original example.
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
/ᑍ ᑍ/
/ᑍProgram Name: JOBDAPI ᑍ/
/ᑍ ᑍ/
/ᑍProgramming Language: ILE C ᑍ/
/ᑍ ᑍ/
/ᑍDescription: This example shows how to access a field ᑍ/
/ᑍ value returned from a retrieve API. ᑍ/
/ᑍ ᑍ/
/ᑍHeader Files Included: STDIO - Standard Input/Output ᑍ/
/ᑍ STRING - String Functions ᑍ/
/ᑍ QUSEC - Error Code Parameter ᑍ/
/ᑍ QWDRJOBD - Retrieve Job Description API ᑍ/
/ᑍ QLIEPT - Entry Point Table ᑍ/
/ᑍ ᑍ/
B-22 System API Programming V4R1