You may want to consider using the alternative of using the supported systems APIs. The IBM Knowledgebase Document has the description of how to code for QSPGETF as well as the caution of not supported and will be dropped from a future release.
You may want to consider using the alternative of using the supported systems APIs. The IBM Knowledgebase Document has the description of how to code for QSPGETF as well as the caution of not supported and will be dropped from a future release.
> How do I convert the numeric spool file number to a hex > value in C/L? Declare the variable as char 4 and use %bin to convert from numeric to char. --buck
Convert field to hex for use in QSPGETF I am trying to use QSPGETF to save spool files from an outq. My system is at V5R1. Parameter 4 is the spool file number which must be a hexadecimal value. How do I convert the numeric spool file number to a hex value in C/L? How shoule the variable for parameter 4 be defined? Fields defined in C/L are: DCL VAR(&SPLFILE#) TYPE(*DEC) LEN(8 0) DCL VAR(&SPLFILE#A) TYPE(*CHAR) LEN(8) Thanks Larry Swain lls_51@yahoo.com