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

Hi Gurus

 

I'm working with user-defined format, and need to change a stored user-defined format $nykrpak.

It have been stored for some time ago and I don't have the documentation or sas program that created it in the first place.

Instead of creating a new format, I want to change the existing.

Please recommend how to view and maintain a stored user-defined format.

 

Thanks.

 

Ole

1 ACCEPTED SOLUTION

Accepted Solutions
andreas_lds
Jade | Level 19

Use proc format with cntlout -option to save the format definition to a dataset, than modify the dataset an use proc format with cntlin to update the format definition. Having a backup of the catalog is recommended.

 

proc format cntlout=work.format_def;
   select $nypark;
run;

/* update dataset work.format_def */

proc format cntlin=work.format_def;
run;

View solution in original post

1 REPLY 1
andreas_lds
Jade | Level 19

Use proc format with cntlout -option to save the format definition to a dataset, than modify the dataset an use proc format with cntlin to update the format definition. Having a backup of the catalog is recommended.

 

proc format cntlout=work.format_def;
   select $nypark;
run;

/* update dataset work.format_def */

proc format cntlin=work.format_def;
run;

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 1 reply
  • 1633 views
  • 3 likes
  • 2 in conversation