BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Ayaz020377
Calcite | Level 5

Hello everyone,

I am having an issue with a format. In a dataset in one system, say system A, a format named product is used. I need to use the same format & dataset in another system, say B. So how can I know how the format in system A has been defined so that I can use this in system B.

Please help me, I am having this issue for a long time, but cannot find a solution.

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User

first use

proc format cntlout=x

make a dataset named X .

transfer X into B system.

then run

proc format cntlin=x

Ksharp

View solution in original post

6 REPLIES 6
AncaTilea
Pyrite | Level 9

Hi.

Can you try this?

*---  enter name of format  -----*;

%let format = product;*possibly $product

proc format library = work.formats fmtlib;

select &format.;

run;

quit;

Let me know.

Jagadishkatam
Amethyst | Level 16

Hi,

You can also use proc contents procedure to check the type of format used in dataset A. Proc contents procedure will display the attributes, engine, variables(length,type,format,label etc.,), and on which variable the dataset is sorted.

Here is the syntax

Proc contents data=A;

run;

if there are no formats used for the variables it will not display anything.

Hope this helps you.

Thanks,

Jagadish

Thanks,
Jag
Ksharp
Super User

first use

proc format cntlout=x

make a dataset named X .

transfer X into B system.

then run

proc format cntlin=x

Ksharp

Tom
Super User Tom
Super User

The other issue you might need to check is the FMTSEARCH option so that you know where the format is stored.

Peter_C
Rhodochrosite | Level 12

Tom,

The catalog holding each user format  is defined in SASHELP.VFORMAT

PeterC

(I think Ksharp has the correct answer)

Ayaz020377
Calcite | Level 5

Can you please help me in giving below information?

I get mail saying that "you have not set a status update". Where to set the update?

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 6 replies
  • 1309 views
  • 6 likes
  • 6 in conversation