Help using Base SAS procedures

Exceeds 8 characters, and will be truncated, also can see some error

Reply
N/A
Posts: 1

Exceeds 8 characters, and will be truncated, also can see some error

filename chksas pipe "cleartool describe -aat -all %sysfunc(pathname(&lib))/&dsn..sas7bdat" ;
data readpgm;
infile chksas lrecl=600 TRUNCOVER;
input dirinfo $600. ;
put 'dirinfo = ' dirinfo;
run;
filename chksas ;
run;

Hi ALL ,

When i am running above code i am getting below message ,some one could help me .

66 filename chksas
NOTE: In a call to the PATHNAME routine, the fileref/libref /vob/xxxxx/xxxxx/xxxxxxx/xxxxxx exceeds 8
characters, and will be truncated.

66 ! pipe "cleartool describe -aat -all %sysfunc(pathname(&lib))/&dsn..sas7bdat" ;
67 data readpgm;
68 infile chksas lrecl=600 TRUNCOVER;
69 input dirinfo $600. ;
70 put 'dirinfo = ' dirinfo;
71 run;

NOTE: The infile CHKSAS is:
Pipe command="cleartool describe -aat -all /aev.sas7bdat"

dirinfo = cleartool: Error: Unable to access "/aev.sas7bdat": No such file or directory.
NOTE: 1 record was read from the infile CHKSAS.
The minimum record length was 78.
The maximum record length was 78.
NOTE: The data set WORK.READPGM has 1 observations and 1 variables.
NOTE: DATA statement used (Total process time):
real time 0.37 seconds
cpu time 0.00 seconds


72 filename chksas ;
NOTE: Fileref CHKSAS has been deassigned.
PROC Star
Posts: 7,360

Re: Exceeds 8 characters, and will be truncated, also can see some error

What is the value of &lib?

Art
--------
> filename chksas pipe "cleartool describe -aat -all
> %sysfunc(pathname(&lib))/&dsn..sas7bdat" ;
> data readpgm;
> infile chksas lrecl=600 TRUNCOVER;
> input dirinfo $600. ;
> put 'dirinfo = ' dirinfo;
> filename chksas ;
> un;
>
> Hi ALL ,
>
> When i am running above code i am getting below
> message ,some one could help me .
>
> 66 filename chksas
> NOTE: In a call to the PATHNAME routine, the
> fileref/libref /vob/xxxxx/xxxxx/xxxxxxx/xxxxxx
> exceeds 8
> characters, and will be truncated.

> pipe "cleartool describe -aat -all
> %sysfunc(pathname(&lib))/&dsn..sas7bdat" ;
> 7 data readpgm;
> 68 infile chksas lrecl=600 TRUNCOVER;
> 69 input dirinfo $600. ;
> 70 put 'dirinfo = ' dirinfo;
> 71 run;
>
> NOTE: The infile CHKSAS is:
> Pipe command="cleartool describe -aat -all
> /aev.sas7bdat"
>
> dirinfo = cleartool: Error: Unable to access
> "/aev.sas7bdat": No such file or directory.

> NOTE: 1 record was read from the infile CHKSAS.
> The minimum record length was 78.
> The maximum record length was 78.
> NOTE: The data set WORK.READPGM has 1 observations
> and 1 variables.
> NOTE: DATA statement used (Total process time):
> real time 0.37 seconds
> cpu time 0.00 seconds
>
>
> 72 filename chksas ;
> NOTE: Fileref CHKSAS has been deassigned.
Super User
Posts: 9,671

Re: Exceeds 8 characters, and will be truncated, also can see some error

Yes.You need to use $varying200. this format.
$w take white blank as default delimiter.
[pre]
data readpgm;
infile chksas lrecl=600 length=len;
input dirinfo $varying600. len ;
put 'dirinfo = ' dirinfo;
run;
[/pre]

Ksharp
Ask a Question
Discussion stats
  • 2 replies
  • 806 views
  • 0 likes
  • 3 in conversation