BookmarkSubscribeRSS Feed
sdang
Quartz | Level 8

How do I know I have proc formatting.  And how do I access it. Is it proc formatting different from "Insert a New Column" in Query Builder?  Using proc formatting, I want to tried some new tricks I learned through SAS online:  CNTLIN

DATA LOOKUP;

INFILE DATAIN;

INPUT

     @20 IDNUMBER $CHAR16. ;

START = IDNUMBER ;

LABEL = 'KEEP' ;

FMTNAME = '$LOOKUP';

PROC SORT

DATA = LOOKUP

OUT = FMT

NODUPKEY ;

BY START ;

PROC FORMAT CNTLIN=FMT;

2 REPLIES 2
ChrisHemedinger
Community Manager

PROC FORMAT is part of Base SAS -- so you have it!

SAS Enterprise Guide has a task that can convert your data set into a SAS format.  It's in Tasks->Data->Create Format from Data Set.  I have a blog post that describes the task here:

http://blogs.sas.com/content/sasdummy/2009/04/27/creating-a-sas-format-from-a-data-set/

The task generates a SAS program that you can use to practice your new PROC FORMAT skills if you want to learn more about how to use it in your own programs.

Note that when that blog post was written, the task was an "extra" custom task that you had to download.  Now it's built in -- no need to download as a custom task.

Chris

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
sdang
Quartz | Level 8

Thank you! It helps a lot.

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!

SAS Enterprise Guide vs. SAS Studio

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.

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
  • 2 replies
  • 1070 views
  • 0 likes
  • 2 in conversation