Hello ...
I am trying to read a raw data file. Here is a sample of my data:
[tt]240010002799XXXX8.%0910090928241910000000000000000704030318507040303185231755
240010300000XXXX8.%9999999999943410000000000000001208070734212080707342165858
240010300000XXXX6.%99999999999054 1021080829410210808294010911
240010300000XXXX9.%9999999999904410000000000000001026070729910260707299174528[/tt]
Here is the code that I’m working on:
My problem is with the PURGE_DATE_YYDDD AND ORIG_NON-APPR_YYDDD variables.
My problem is, the application that produces this data allows the user to enter a non-expiring purge date. It records this date value with all nines. There may be a need to perform calculations on the date, so I want to read the data in as a date, but SAS is hiccupping and the SAS log indicates “INVALID DATA” for each record.
Does anyone have any suggestions? I am a novice when it comes to SAS.
Our shop runs version 9.1.3 SP4 on z/OS.
Thank you!
I am trying to read a raw data file. Here is a sample of my data:
[tt]240010002799XXXX8.%0910090928241910000000000000000704030318507040303185231755
240010300000XXXX8.%9999999999943410000000000000001208070734212080707342165858
240010300000XXXX6.%99999999999054 1021080829410210808294010911
240010300000XXXX9.%9999999999904410000000000000001026070729910260707299174528[/tt]
Here is the code that I’m working on:
Code:
OPTIONS OBS=100;
DATA R001;
INFILE INPUT1;
INPUT @01 RECTYP $CHAR1. @;
IF RECTYP = '2' THEN
DO;
INPUT @002 ACCOUNT $CHAR16.
@018 ACCT_LENG_VAL $CHAR2.
@020 PURGE_DATE_YYMMDD YYMMDD6.
@026 PURGE_DATE_YYDDD JULIAN5.
@031 ACTION_CODE $CHAR2.
@033 CARD_TYPE $CHAR1.
@034 REGION_FLAGS $CHAR16.
@050 ORIG_NON_APPR_MMDDYY MMDDYY6.
@056 ORIG_NON_APPR_YYDDD JULIAN5.
@061 EFF_DATE_MMDDYY MMDDYY6.
@067 EFF_DATE_YYDDD $CHAR5.
My problem is with the PURGE_DATE_YYDDD AND ORIG_NON-APPR_YYDDD variables.
My problem is, the application that produces this data allows the user to enter a non-expiring purge date. It records this date value with all nines. There may be a need to perform calculations on the date, so I want to read the data in as a date, but SAS is hiccupping and the SAS log indicates “INVALID DATA” for each record.
Does anyone have any suggestions? I am a novice when it comes to SAS.
Our shop runs version 9.1.3 SP4 on z/OS.
Thank you!