Hi
The data in Mainframe OS390. Which in Binary Format (IB4.)
arrange YYYYMMDD.
Some record have invalid date such as 20001313..
DATA ASNDATA ERRA;
7 INFILE ASNM;
8 INPUT @1 ACNO $9. @10 REGD IB4.;
9 IF INPUT(REGD, YYMMDD8.)= . THEN OUTPUT ERRA;
10 ELSE OUTPUT ASNDATA;
NOTE : Numeric values have been converted to character values at the places given 10:18
Note : Invalid agrument to function INPUT at line 9 column 12.
---------+----------+
1 CHAR 000000013..wE.00000000
ZONE FFFFFFFFF02AC0FFFFFFFF
NUMR 0000000131F65000000000
ACNO=000000013 REGD=19900101
REGD ;; Date Format
The data in Mainframe OS390. Which in Binary Format (IB4.)
arrange YYYYMMDD.
Some record have invalid date such as 20001313..
DATA ASNDATA ERRA;
7 INFILE ASNM;
8 INPUT @1 ACNO $9. @10 REGD IB4.;
9 IF INPUT(REGD, YYMMDD8.)= . THEN OUTPUT ERRA;
10 ELSE OUTPUT ASNDATA;
NOTE : Numeric values have been converted to character values at the places given 10:18
Note : Invalid agrument to function INPUT at line 9 column 12.
---------+----------+
1 CHAR 000000013..wE.00000000
ZONE FFFFFFFFF02AC0FFFFFFFF
NUMR 0000000131F65000000000
ACNO=000000013 REGD=19900101
REGD ;; Date Format