Help using Base SAS procedures

Create Folder in XYTHOS

Reply
Contributor
Posts: 33

Create Folder in XYTHOS

Hi,

I have a set of PDF Files with the following format
RD007_123.pdf,
RD006_123.pdf,
RD007_234.pdf,
RD001_235.pdf
where the value 123,234, 235 etc are the unit numbers, there are 1000 Unis and new can be added dynamically.

My requirement is to have a folder 123,234,235 created dynamically in Xythos using SAS or any other tool and then inside this XYTHOS Folder move the files
RD007_123.pdf,
RD006_123.pdf,
RD007_234.pdf,
RD001_235.pdf to their respective unit folder.

Please suggest.

OS: AIX
SAS Version: SAD 9.1.3

Regards
Russell
Contributor
Posts: 34

Re: Create Folder in XYTHOS

I dont think there's a direct way to read PDF files into SAS.
Please go through this discussion where using a 3rd party tool people were able to load PDF data into SAS.
http://groups.google.com/group/comp.soft-sys.sas/browse_thread/thread/01bf795c710e3013/bf2442313e4c0...

Once data is in SAS, we can use the FILE statement with the MOD option to dynamically add multiple datasets to a single file.

http://support.sas.com/documentation/cdl/en/hostwin/61924/HTML/default/chfoptfmain.htm

Thanks
SAPPER
Super Contributor
Super Contributor
Posts: 3,174

Re: Create Folder in XYTHOS

You're looking at using SAS FILENAME with the "PIPE" engine in order to read up the OS directory information and generate suitable command invocations against your files and directories.

Suggest reviewing the SAS Companion for AIX as well as the SAS functions related to files and directories for your OS, documented in the SAS Language guide.

Also, there are supplemental technical/conference paper references on the SAS support http://support.sas.com/ website available.

Scott Barry
SBBWorks, Inc.
Super Contributor
Posts: 474

Re: Create Folder in XYTHOS

From what I understand you just need to compose and issue the right system commands.

There is more than a way to issue a system commando through SAS, one of which, being the X statement,

See here:
http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a000212624.htm

From there, you can run any system command that you wish.

Cheers from Portugal.

Daniel Santos @ www.cgd.pt
SAS Super FREQ
Posts: 8,743

Re: Create Folder in XYTHOS

Hi:
It was my understanding that you used XYTHOS with the SAS Enterprise Intelligence Platform web-tier or "middle-tier". I thought that the XYTHOS folders were administered and created and managed with the XYTHOS software. For example, when you write Web Report Studio reports to XYTHOS folders, the folders need to be in existence. I'm not sure about creating/using/administering the XYTHOS folders in batch mode. That might be a question for Tech Support.

Here are some documents and references:
http://support.sas.com/rnd/itech/doc9/admin_oma/security/security_accessdav_ex.html
http://support.sas.com/techsup/technote/ts776.pdf
http://www2.sas.com/proceedings/forum2008/392-2008.pdf
http://support.sas.com/resources/papers/proceedings09/006-2009.pdf

cynthia
Ask a Question
Discussion stats
  • 4 replies
  • 131 views
  • 0 likes
  • 5 in conversation