Help using Base SAS procedures

Having issues in using Infile option.

Reply
N/A
Posts: 0

Having issues in using Infile option.

Hi All,
I have a Ascii file which is fixed width length. In the SAS program, I am reading the file through Infile option. I have data as below:

1201 2008-10-31 5702345678 2334
First column I should read as : 1
Second Column: 201
Third Column:
Fourth: 2008-10-31
Fifth:
Sixth:
Seventh:
Eigth:570
Ninth:2345678
tenth:
Eleventh:2334

But when I use infile option it is only reading first three columns and rest columns are empty even though some of the columns are having data.

Here is my code snippet.
data _null_;
filename temp "/mydir/filename.txt";
libname wip '$PWD/old';

data wip.basic_xtrct;
infile temp truncover;
input @1 first $1.
@2 Second $3.
@3 Third $10.
run;

Can you please help me in solving this issue.
N/A
Posts: 0

Re: Having issues in using Infile option.

Posted in reply to deleted_user
Can anybody help on the below problem.
SAS Super FREQ
Posts: 8,862

Re: Having issues in using Infile option.

Posted in reply to deleted_user
Hi:
It looks like you also posted your question in another forum posting.... and suggestions were posted there:
http://support.sas.com/forums/thread.jspa?threadID=3865&tstart=0

cynthia
Ask a Question
Discussion stats
  • 2 replies
  • 89 views
  • 0 likes
  • 2 in conversation