Input Buffer

Reply
Occasional Contributor
Posts: 7

Input Buffer

The sas dataset club2_2 doesnt have the 3rd observation of the text file ss.txt, which should be in club2_2.sas because it is shown in the input buffer. On the other hand the 2nd obs of ss.txt is in club2_2.sas which is not shown in the input buffer. The Input buffer should have skipped the the 2nd obs since it has reached the end of the observation unexpectedly and should have read and written the 3rd obs in the club2_2.sas file. Note that the endweight of the 2nd obs in club2_2.sas is Actually the begining of the 3rd obs in ss.txt. Explain why this is happening.

Picture1.png

Respected Advisor
Posts: 3,777

Re: Input Buffer

You have some records that are only 22 bytes, your input statement goes to column 26.  You can use TRUNCOVER or even PAD to achieve the correct result.

Occasional Contributor
Posts: 7

Re: Input Buffer

Sir, thanks.....I know how to avoid this. But my question is whats happening in Input Buffer as well as PDV from the moment when the first observation is read. .

Ask a Question
Discussion stats
  • 2 replies
  • 152 views
  • 3 likes
  • 2 in conversation