DATA WORK;
INFILE IN;
FILE OUT1;
INPUT @1 INF $CHAR76.;
PUT @1 INF $CHAR76.;
RUN;
the i/p file has following data:
(col 1-80)
AAA this is test...............................................................
AAA this is not test............................................................
CCC
BBB this is test...............................................................
BBB this is not test............................................................
The third row in input file has data only from col 1-3.
the o/p given by the sas pgm is as follows which is incorrect:
AAA this is test...............................................................
AAA this is not test............................................................
BBB this is test...............................................................
BBB this is not test............................................................
In the o/p file, the third row is not getting displayed.
Could you please help me.
Joined: 31 Oct 2006 Posts: 497 Location: Richmond, Virginia
Works for me - please post your SASlog as code.
Code:
DATA WORK;
INFILE IN;
FILE OUT1;
INPUT @1 INF $CHAR76.;
PUT @1 INF $CHAR76.;
RUN;
Code:
AAA THIS IS TEST..........................
AAA THIS IS NOT TEST......................
CCC
BBB THIS IS TEST..........................
BBB THIS IS NOT TEST
Joined: 29 Nov 2006 Posts: 35 Location: Jacksonville, FL
If you are reading a variable blocked record, you will not, by default get the third line because the record is not 76 bytes long. Change your infile statement to:
Code:
INFILE IN truncover;
and I am pretty certain that your problem will go away (default, I believe) is SKIPOVER.