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-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
  • 6 replies
  • 1043 views
  • 6 likes
  • 6 in conversation