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

Hi,

Just a warning. I am a super novice with SAS.  I have jobs that I run that I modify etc and sometimes I can put something together after many person hours.

 

At the moment, Im trying to run a job using MXG that will read TYPE62 records to report on opening of a particular vsam cluster/component.

 

I thouight I should be using DAACNAME as a variable but apparently it doesnt like that.  Im not sure what else to try.  I tried  giving it a label.  I guess Im not really understanding what is occurring.  I think its very simple but it eludes me.

 

Can anyone offer some info on this silly error?

 

We are at SAS 9.4 and here is what I am running:

 

//SOURCLIB  DD DSN=SYS2.MXG.USERID.SOURCLIB,DISP=SHR        
//          DD DSN=SYS2.MXG.SOURCLIB,DISP=SHR               
//LIBRARY   DD DSN=SYS2.MXG.FORMATS,DISP=SHR                
//SYSIN    DD  *                                            
                                                            
                                                            
    %INCLUDE   SOURCLIB(TYPE62);                            
                                                            
   DATA VSAM1 ;                                             
     SET WORK.TYPE62;                                       
      IF DAACNAME =: 'RMDS.FMSM130X.FORMJG76'  ;            
 /*   IF JOB =: 'FTPSRV'  OR    */                          
                                                            
                                                            
    SDATE = DATEPART(OPENTIME) ;                            
    STIME = TIMEPART(OPENTIME) ;                            
    FORMAT SDATE MMDDYY8. ;                                 
    FORMAT STIME TIME8. ;                                   
                                                            
 /* PROC CONTENTS ;                                         
                                                            
    PROC SORT;                                              
     BY SYSTEM JOB DAACNAME SDATE STIME ;                   
                                                            
    PROC PRINT NOOBS SPLIT='*';                             
     VAR SYSTEM JOB SDATE STIME  DAACNAME ;                 
     TITLE1'JOBS ACCESSING THIS DS  ' ;                     

 

 

Thank you.

Donna 

1 ACCEPTED SOLUTION

Accepted Solutions
RW9
Diamond | Level 26 RW9
Diamond | Level 26

The warning is telling you that the dataset in library work, called type62, does not contain a variable called DAACNAME.

Also a tip, don't code all in uppercase, its really hard to read.

View solution in original post

4 REPLIES 4
RW9
Diamond | Level 26 RW9
Diamond | Level 26

The warning is telling you that the dataset in library work, called type62, does not contain a variable called DAACNAME.

Also a tip, don't code all in uppercase, its really hard to read.

Donnamae
Calcite | Level 5
Thank you RW9. It looks like entryname is a listed variable . So I will try with that one.
Donnamae
Calcite | Level 5
I meant entrname and that works!
ballardw
Super User

Though sometimes a bit cryptic most of the SAS error messages and warnings are pretty helpful and often in semi-plain language.

 

 

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 4 replies
  • 2805 views
  • 0 likes
  • 3 in conversation