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 ?
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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 lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.