NewToForum
Programmer
We are trying to create a file and one of the fields needs to have an embedded sign in the last position.We would be writing the file in ASCII and before transmitting the file out to a vendor converting it to EBCDIC.
Example:
01 amount-1 pic s9(16)v99.
01 amount-2 pic s9(13).
01 receiving-field pic s9(13).
Doing calculations with amount-1 throughout program. Then amount-1 is moved to amount-2. And amount-2 is moved to receiving-field of outgoing file. Last position of receiving field must be an embedded sign (contain a character...is this standard?) EX: a positive 3 in the last position should show as a C. Any suggestions on how the fields should be set up?
Example:
01 amount-1 pic s9(16)v99.
01 amount-2 pic s9(13).
01 receiving-field pic s9(13).
Doing calculations with amount-1 throughout program. Then amount-1 is moved to amount-2. And amount-2 is moved to receiving-field of outgoing file. Last position of receiving field must be an embedded sign (contain a character...is this standard?) EX: a positive 3 in the last position should show as a C. Any suggestions on how the fields should be set up?