The SAS Output Delivery System and reporting techniques

ODS PDF - create folders?

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 9
Accepted Solution

ODS PDF - create folders?

Is there a flag or an option to have the ODS create folders.

I have a routine that creates dozens of reports most of which need to be in a separate folder/directory.

I have created the top level folders "Distribute\All Users" but there could be a large number of sub-folders(\User1.....\User23). And the number of users is not know until the routine is executed.

\All Users

\User1

\User2

\User3

\User4

\User5

ODS PDF FILE='W:\Distribute\All Users\User5\User5 Report.pdf' STYLE=prpdf BOOKMARKLIST=NO;


Accepted Solutions
Solution
‎08-07-2015 04:23 PM
Grand Advisor
Posts: 17,329

Re: ODS PDF - create folders?

How are you creating the top level folder? The routine can create folders using DCREATE?

View solution in original post


All Replies
Solution
‎08-07-2015 04:23 PM
Grand Advisor
Posts: 17,329

Re: ODS PDF - create folders?

How are you creating the top level folder? The routine can create folders using DCREATE?

Occasional Contributor
Posts: 9

Re: ODS PDF - create folders?

Yes, that does work.

Data _Null_;

newdir=dcreate('User1','W:\Distribute\All Users\');

run;

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 420 views
  • 0 likes
  • 2 in conversation