BookmarkSubscribeRSS Feed
mnjtrana
Pyrite | Level 9

Hi,

 

I am trying to download a PDS using proc download with sas datsets from mainframe to windows.

 

However the PDs contains sas datasets with sepcial characters and spaces like:

 

tilsys karatner.sas7bdat

Driftspåvirkning.sas7bdat

 

So I am not able to download these to windows. Renaming the same is not an options, as they are being updated in mainframe, every now and then. Any help in here is highly appeciated.

 

I have also tried, options validvarname = all; but it didn't work.

 

Thanks for the help,

Manjeet

 

 

RSUBMIT;
proc download inlib =cxxx.abc.bbc.sas outlib =cxxx.abc.bbc.sas V6TRANSPORT;
RUN;
ENDRSUBMIT;

 

 


Cheers from India!

Manjeet
3 REPLIES 3
Kurt_Bremser
Super User

Start with setting a strict policy for the naming of server files (and of variables in them), so everything adheres to validvarname=v7.

No blanks, characters of the 26 of the western alphabet, digits and underlines.

This simple measure will make your problems go away in one easy sweep. Everything else is just a time-wasting kludge, as non-standard names will always cost you extra (starting with having to use totally unnecessary quotes)

LinusH
Tourmaline | Level 20

Been a while since I worked on the mainframe, but having this 4 level names i the inlib and outlib options doens't look right. I would suspect a libanme statement, and just that in the inlib=.

Also, why are you using V6TRANSPORT?

Data never sleeps
Kurt_Bremser
Super User

That unicode (vomits, cleans keyboard) character (c3 a5) in the second filename looks quite Scandinavian to me, and I can only imagine what that can cause on machines running with an Indian locale (how would you type such a character?).

If you really get your files from Scandinavia, the people there should be aware that they are working in an international environment and refrain from using locale-specifics in their data. Apart from getting rid of the *@$#!§? blanks.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 666 views
  • 3 likes
  • 3 in conversation