Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy format catalog from one platform to another.

Status
Not open for further replies.

6656

Programmer
Nov 5, 2002
104
0
0
US
Hi all,

I can't to access a SAS format catalog, which was transferred (proc download and/or FTP with binary) from Unix platform to Windows (all with SASV8.2)and the ERROR msg said that file created from different operating system. But there is no problem to access the format catalog transfered (by using PROC DOWNLOAD via SAS/Conn) from MVS (SASv6.9) to Unix and Win XP.

Is any idea to transfer the format catalog from Unix to Window directly without using Proc cport/cimport and proc format cntlin/cntlout?

Thanks!
Mike
 
Hiya 6656,
There are two ways to do it

1 - CPORT and CIMPORT, you should need to use PROC FORMAT again though, here's some code I used to transfer a SAS dataset and a format catalog from PC SAS to Unix SAS.:-
Code:
/* Run this part of the code in Windows *******************/
libname newin 'c:\porting';

proc cport cat=newin.formats file='u:\cw_fmt';
run;

proc cport data=newin.spss file='u:\cw_spss';
run;
/**********************************************************/


/* Run this part of the code in Unix **********************/

libname library '/apps/chrismain';
libname mytmp   '/apps/chris';

proc cimport cat=library.formats infile='/nwunix/cw_fmt';
run;

proc cimport data=mytmp.spss infile='/nwunix/cw_spss';
run;
* Test that the data has gone across *;
proc print data=mytmp.spss(obs=20);
run;
/**********************************************************/

2 - Alternatively, set up a remote SAS Session from your PC/SAS session, and then set up remote libnames to point to your Unix libraries, you can then drag and drop through PC SAS' explorer window to move it across.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top