BookmarkSubscribeRSS Feed
OS2Rules
Obsidian | Level 7
Hi All:

I can't seem to find this in the doc anywhere:

I have a format that I have saved in a library on the mainframe that I need to copy to the server. How do I do this (other than the Connect stuff, which is not a problem)?

I don't want to copy the entire library or the format catalog, just the format that I need.

Much thanks.
4 REPLIES 4
Peter_C
Rhodochrosite | Level 12
proc format cntlout = work.something library= zos_fromat_lib ;
select any required $format and_or informat ;
run ;
signon yoursrv ;
rsubmit ;
proc upload data= work.something ;
run;
proc format library=server_fmt_library cntlin= work.something ;
run ;
SASKiwi
PROC Star
If you don't use SAS/CONNECT there are 2 options:

1) Copy the source code that produced the format and run it on the target computer.

2) Convert the SAS format into a SAS transport file using the CPORT procedure, do a BINARY transfer of the file to your target computer, then read in the transport file using the CIMPORT procedure. Refer to SAS documentation for more details.
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Suggested Google advanced search argument, this topic/post:

proc cport transfer catalog format operating system site:sas.com


Scott Barry
SBBWorks, Inc.
OS2Rules
Obsidian | Level 7
Thanks all.

I used a technique much like Peter.C suggested except that the source library was allocated on the mainframe as a remote table using the CONNECT Spawner (thank goodness that was available). I allocated the target as the server library and - ta-da!

Also - the source library had only the formats that I needed for this application, not the entire production format library. I was thinking that I needed to select only a few formats from a library that contains hundreds.

And - unfortunately, the source code is long gone...

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 2577 views
  • 0 likes
  • 4 in conversation