Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Read sas dataset and send email if missing values are found

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
srinivaspsai

New User


Joined: 22 Jul 2010
Posts: 1
Location: pune

PostPosted: Fri Aug 27, 2010 11:51 am    Post subject: Read sas dataset and send email if missing values are found
Reply with quote

Hi,

I have a requirement where i need to read a sas dataset having 4 variables and if any missing values are present in any of the fields then an email will be genrated stating the same.

Is there any function or logic how to do the same?
Back to top
View user's profile Send private message

PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2435
Location: Netherlands, Amstelveen

PostPosted: Fri Aug 27, 2010 12:11 pm    Post subject:
Reply with quote

http://support.sas.com/documentation/cdl/en/hosto390/61886/HTML/default/viewer.htm#/documentation/cdl/en/hosto390/61886/HTML/default/a001412669.htm
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Fri Aug 27, 2010 4:55 pm    Post subject:
Reply with quote

Are the 4 variables all numeric? If so, this untested code should get you started:
Code:
DATA _NULL_;
     SET DDNAME.SASDB END=EOF;
     RETAIN MISSFLAG 0 ;
     IF VAR1 = . OR VAR2 = . OR VAR3 = . OR VAR4 = . THEN MISSFLAG = 1;
     IF EOF AND MISSFLAG = 1 THEN DO;
          <<send the email logic>>
                                  END;
As always with SAS, though, there are other ways to do it.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts Sorting of hex values Saurabh_mi DFSORT/ICETOOL 11 Thu May 25, 2017 3:49 pm
No new posts EMAIL using IEBGENER - SMTP parasmalik20 JCL & VSAM 4 Tue May 23, 2017 12:19 am
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us