IBM Version 4 Universal Remote User Manual


 
ᑍ extract age of spooled file for report
IF KEY-FIELD-FOR-FIELD-RETD OF QUS-LSPL-KEY-INFO = 216 2425
MOVE SPACES TO OPNDAT,
MOVE DATA-FIELD OF QUS-LSPL-KEY-INFO(
1:DATA-LENGTH OF QUS-LSPL-KEY-INFO)
TO OPNDAT.
ᑍ address next variable length entry
SET ADDRESS OF STRING-SPACE TO ADDRESS OF QUS-LSPL-KEY-INFO.
SET ADDRESS OF QUS-LSPL-KEY-INFO TO ADDRESS OF
STRING-SPACE(
LEN-FIELD-INFO-RETD OF QUS-LSPL-KEY-INFO + 1:1).
Using Keys with List Spooled Files API—ILE RPG Example
Refer to “Using Keys with List Spooled Files API—Example” on page 3-24 for the
original example.
Fᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
Fᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
F
Fᑍ Program: List Spooled Files for Current User
F
Fᑍ Language: ILE RPG
F
Fᑍ Description: This example shows the steps necessary to
Fᑍ process keyed output from an API.
F
Fᑍ APIs Used: QUSLSPL - List Spooled Files
Fᑍ QUSCRTUS - Create User Space
Fᑍ QUSPTRUS - Retrieve Pointer to User Space
F
Fᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
Fᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
F
FQPRINT O F 132 PRINTER OFLIND(ᑍINOF)
D
Dᑍ Error Code parameter include
D
D/COPY QSYSINC/QRPGLESRC,QUSEC 11
D
DSPC_NAME S 2 INZ('SPCNAME QTEMP ')
DSPC_SIZE S 9B  INZ(2) 2
DSPC_INIT S 1 INZ(X'')
DLSTPTR S
DLSTPTR2 S
DSPCPTR S
DARR S 1 BASED(LSTPTR) DIM(32767)
D DS
DPAGES# 1 4B 
DPAGESA 1 4
DKEYS DS 7
D 9B  INZ(21) 8
D 9B  INZ(216)
D 9B  INZ(211)
B-42 System API Programming V4R1