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
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;
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;
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.