Hello I am using the following command to get the listing of the S3 bucket. it goes into the log file.
How to put it into a SAS dataset?
%let s3bucketpath=s3://***-pr-brz-datareten-edp-nprod;
filename oscmd pipe "aws s3 ls ""&s3bucketpath."" ";
You need to pair this PIPE output with a DATA step, something like:
data WANT;
infile oscmd pad;
input LINE 256.;
/* parse the line into fields */
FNAME=substr(X,..);
run;
You need to pair this PIPE output with a DATA step, something like:
data WANT;
infile oscmd pad;
input LINE 256.;
/* parse the line into fields */
FNAME=substr(X,..);
run;
I am not familliar with pad
What does it stand for ?
@alepage wrote:
I am not familliar with pad
What does it stand for ?
It means what it sounds like. The lines are padded with spaces to the full logical record length.
Not much use for it since they introduced the TRUNCOVER option some 30 to 40 years ago.
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Select SAS Training centers are offering in-person courses. View upcoming courses for: