PDA

View Full Version : converting data types



Guest.Visitor
08-01-2003, 09:00 AM
Declare 2 variables, DCL VAR(&CHAR) TYPE(*CHAR) LEN(7) and DCL VAR(&DEC) TYPE(*DEC) LEN(7). Retrieve the data area into &CHAR, then CHGVAR VAR(&DEC) VALUE(&CHAR).

chartley@arml.org
08-01-2003, 09:00 AM
A cl program that once retrieved a number from a data area, *dec 7 0. Now the CL needs to pull that number from a different data area of type *char 7 . How do I get the new char data and convert it so the cl may pass the proper data to another program?