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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 2940 views
  • 0 likes
  • 3 in conversation