Hi all,
I have a data structure defined like so:
one of the field name is LDNXLD, numeric length 6.
my program has this line
I get a data decimal error on the last line. In debug, the value of W8NWLD is 000000 and LDNXLD is 6 blank spaces.
I read somewhere that when a user uses a field from a DS, it comes out as blanks, and that is the reason for the data decimal error. how can I solve this problem?
I tried to initiallize the LDNXLD to *ZERO, and that did not work. Fairly new to RPG world. Please help!
I have a data structure defined like so:
Code:
D DSNXLD E DS EXTNAME(LZLDN) D W8NXLD 11 64 C MOVE *ZEROS W8NWLD 6 0
my program has this line
Code:
IF %STATUS(ZPAL01)<>ALLOCFAIL; W8ZPAC = 100; IF S_ZPAL01=1; W8NXLD = W06DATA; W8NWLD = LDNXLD; //DATA DECIMAL ERROR
I read somewhere that when a user uses a field from a DS, it comes out as blanks, and that is the reason for the data decimal error. how can I solve this problem?
I tried to initiallize the LDNXLD to *ZERO, and that did not work. Fairly new to RPG world. Please help!
Comment