Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
SAS o/p file, the third row is not getting displayed

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Other Mainframe Topics
Author Message
shamsundar_mk

New User


Joined: 18 May 2007
Posts: 23
Location: CHENNAI

PostPosted: Tue May 13, 2008 3:43 pm    Post subject: SAS o/p file, the third row is not getting displayed
Reply with quote

I have coded a SAS pgm as follows:

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.
Back to top
View user's profile Send private message
References
PostPosted: Tue May 13, 2008 3:43 pm    Post subject: Re: SAS o/p file, the third row is not getting displayed Reply with quote

Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 497
Location: Richmond, Virginia

PostPosted: Tue May 13, 2008 5:40 pm    Post subject:
Reply with quote

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                     
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 2959
Location: Brussels once more ...

PostPosted: Tue May 13, 2008 5:45 pm    Post subject:
Reply with quote

Works fine on my system ................... cut & pasted your code and got
Code:

AAA TEST   
AAA NO TEST
CCC       
BBB TEST   
BBB NOTEST
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 457

PostPosted: Wed May 14, 2008 4:22 am    Post subject:
Reply with quote

Hi,

maybe he just can't C it (sorry it's just my warped sense of humour).


Gerry
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 2959
Location: Brussels once more ...

PostPosted: Wed May 14, 2008 11:46 am    Post subject:
Reply with quote

gcicchet wrote:
Hi,

maybe he just can't C it (sorry it's just my warped sense of humour).


Gerry


Well, it brought a smile to my face icon_smile.gif
Back to top
View user's profile Send private message
Alan Voss

New User


Joined: 29 Nov 2006
Posts: 35
Location: Jacksonville, FL

PostPosted: Wed Jun 04, 2008 10:38 pm    Post subject:
Reply with quote

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.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 2959
Location: Brussels once more ...

PostPosted: Thu Jun 05, 2008 1:05 pm    Post subject:
Reply with quote

If only the OP had mentioned the possibility of a VB file

Good spot Alan
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1