+ Reply to Thread
Results 1 to 3 of 3

Thread: Convert field to hex for use in QSPGETF

  1. #1

    Default Convert field to hex for use in QSPGETF

    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.

  2. #2
    buck.calabro@commsoft.net Guest

    Default Convert field to hex for use in QSPGETF

    > 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

  3. Default Convert field to hex for use in QSPGETF

    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

+ Reply to Thread

Similar Threads

  1. Replies: 1
    Last Post: 04-29-2005, 12:31 PM
  2. Moving a date defined field to a numeric field using free format
    By buck.calabro@commsoft.net in forum General
    Replies: 2
    Last Post: 05-25-2004, 02:00 AM
  3. Convert Binary Field To Decimal?
    By Guest.Visitor in forum Programming
    Replies: 1
    Last Post: 05-16-2001, 12:33 PM
  4. Moving numeric field to date data type field.
    By Guest.Visitor in forum Application Software
    Replies: 19
    Last Post: 08-20-2000, 04:21 AM
  5. QSPGETF/QSPPUTF
    By Guest.Visitor in forum Programming
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts