DATA Step, Macro, Functions and more

Formats

Reply
N/A
Posts: 0

Formats

Is there anything incorrect about the following statement ? I am not getting the desired results.
CC = PUT(LEFT(PUT(DIAG,8.)),$&FMNAME..)

I get an error like below.
Line generated by the macro variable "FMNAME".
$I1208YB
--------
48
ERROR 48-59: The format $I1208YB was not found or could not be loaded.

Earlier on in the program I have :
NOTE: Entry I1208YB.FORMATC has been imported.
NOTE: Total number of entries processed in catalog OUT.FORMATS: 1
Super Contributor
Super Contributor
Posts: 3,174

Re: Formats

Posted in reply to deleted_user
Suggest you share more code, specifically the format import step. But before that, consider that your format must be in the FMTSEARCH= catalog search list for SAS to find the format. Use SAS PROC OPTIONS to learn your current FMTSEARCH option, and either load/import your format to WORK.FORMATS catalog or add your personal format library content to the FMTSEARCH search order.

Scott Barry
SBBWorks, Inc.
Ask a Question
Discussion stats
  • 1 reply
  • 103 views
  • 0 likes
  • 2 in conversation