I'm getting data from DB2 and saving it in a file. I store the values in COMP variables because the table conversion between SQL and COBOL.
But then the data is unreadable in the file. :/
FILE SECTION.
FD FFFF055S
BLOCK CONTAINS 000 RECORDS
RECORD CONTAINS 021 CHARACTERS
RECORDING F.
01 FFFF055S-REG.
05 T-TPO PIC X(004).
05 T-CLS PIC X(004).
05 T-SCL PIC X(004).
05 T-SEQ PIC X(009).
01 FFFF055S-AREA.
05 TPO PIC S9(004) COMP.
05 CLS PIC S9(004) COMP.
05 SCL PIC S9(004) COMP.
05 SEQ PIC S9(009) COMP.
WRITE FFFF055S-REG FROM FFFF055S-AREA.
FD FFFF055S
BLOCK CONTAINS 000 RECORDS
RECORD CONTAINS 021 CHARACTERS
RECORDING F.
01 FFFF055S-REG.
05 T-TPO PIC X(004).
05 T-CLS PIC X(004).
05 T-SCL PIC X(004).
05 T-SEQ PIC X(009).
01 FFFF055S-AREA.
05 TPO PIC S9(004) COMP.
05 CLS PIC S9(004) COMP.
05 SCL PIC S9(004) COMP.
05 SEQ PIC S9(009) COMP.
WRITE FFFF055S-REG FROM FFFF055S-AREA.
Do you know what can I do, so the data will be in a readable formart in the file?
Thank you.