BookmarkSubscribeRSS Feed
satyasai
Calcite | Level 5
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.
2 REPLIES 2
art297
Opal | Level 21
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.
Ksharp
Super User
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

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 3846 views
  • 0 likes
  • 3 in conversation