I am trying to create an SAS DI job for following code by making use of SAS existing transformation.
so i tried with new-->external file/Delimited/user written file reading options but none of them are having options to read or pass the file options from unix section in SAS DI.
can anyone please suggest any idea on this request ?
filename cccc pipe 'df -g | tail +2' lrecl=32767;
data cccc ;
infile cccc truncover;
input;
infile=compbl(_infile_);
run;
Not sure exactly what problem you are facing. At least in my Linux env I had to change the tail syntax (tail -n 2). Once done I get the desired (?) output from File Reader.
Thanks @LinusH ,
How can i put the command df -g | tail in file please using SAS DI so that as you showed i can use file reader transformation to read the file.
yes this is what ia m expecting.
would you please help how you created df -g node (file node) in provided screen shot please ?
i tried with external file,delimited file options using SAS DI but not able to find options clearly.
so how do i create the file (df -g | tail ) please ? so that i can use file reader transformation to read same ?
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.