Hello, all.
I'm still relatively new to using CL programs in general on the IBM i. I'm looking into using the QDCRDEVD API to retrieve information on *PRT printer device descriptions specifically so I can output the results to a database file:
I'm familiar with dealing with character-based types, like 'CHAR(10)' and I do understand the decimal offset information. E.g. DEVD1100 Format: Offset - Dec - 152, CHAR(10), 'device class.'
However, let's say I'd like to retrieve the values or data for 'Switch setting' that uses 'BINARY(4)' type with Offset - Dec - 144. You can't exactly use 'TYPE(*BIN)' of course in a CL pgm, so how best would you deal with this type of data? Would you need to do a conversion? I just can't seem to grasp this concept yet. If there's documentation on this I'd greatly appreciate it. Thank you.
I'm still relatively new to using CL programs in general on the IBM i. I'm looking into using the QDCRDEVD API to retrieve information on *PRT printer device descriptions specifically so I can output the results to a database file:
I'm familiar with dealing with character-based types, like 'CHAR(10)' and I do understand the decimal offset information. E.g. DEVD1100 Format: Offset - Dec - 152, CHAR(10), 'device class.'
However, let's say I'd like to retrieve the values or data for 'Switch setting' that uses 'BINARY(4)' type with Offset - Dec - 144. You can't exactly use 'TYPE(*BIN)' of course in a CL pgm, so how best would you deal with this type of data? Would you need to do a conversion? I just can't seem to grasp this concept yet. If there's documentation on this I'd greatly appreciate it. Thank you.
Comment