problem with SPLIT
im trying to use split and im having problems with it.
record : 12345|aaaa|12345.00-|12345.00|
im using SPLIT record at '|' into A B C D. These are of type char.everything is fine except for the field which has a negative sign.im getting zeros.
your help would be appreciated.
TRY TO USE THIS LOGIC IN YOUR REPORT
P1(20) VALUE '++++++++++++++++++++',
P2(20) VALUE '++++++++++++++++++++',
P3(20) VALUE '++++++++++++++++++++',
P4(20) VALUE '++++++++++++++++++++',
DEL(3) VALUE '***'.
STRING = ' Part 1 *** Part 2 *** Part 3 *** Part 4 *** Part 5'.
SPLIT STRING AT DEL INTO P1 P2 P3 P4.
WRITE / P1.
WRITE / P2.
WRITE / P3.
WRITE / P4.