BookmarkSubscribeRSS Feed
deleted_user
Not applicable
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.
2 REPLIES 2
deleted_user
Not applicable
Can anybody help on the below problem.
Cynthia_sas
SAS Super FREQ
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

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 582 views
  • 0 likes
  • 2 in conversation