Unpack the packed COBOL COMP-3 Field in SAS w/ S370FPDw
problem:
DSN w/ Date field is packed w/ COBOL COMP-3
request:
read and unpack the date field in SAS
solution:
use data format: S370FPDw (where w is packed length for the field)
e.g.
for a packed field PIC 9(08) COMP-3 at position 200 total length for the date is 8 and packed length is 5
to read from DSN:
INPUT @200 testDate S370FPD5
to write to DSN
PUT @200 testDate $8.
Advertisement
No trackbacks yet.