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
 

 

How to display a value in SAS?

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

New User


Joined: 07 Jun 2010
Posts: 59
Location: coimbatore

PostPosted: Tue Apr 17, 2012 12:52 am    Post subject: How to display a value in SAS?
Reply with quote

Hi All,

I have a SAS code and this program has some logical error. Do I have a option similar to "DISPLAY statement in Cobol" to view a variable's value in SAS.

If so please let me know the syntax for it.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Apr 17, 2012 1:09 am    Post subject:
Reply with quote

Hello,


First, i don't really "do" SAS. . . That being said:

One way could be to write this to a file, assign the dd statement to sysout, and view it in the queued output. Others will give more/better replies, but this may get you moving.
Back to top
View user's profile Send private message
bodatrinadh

Active User


Joined: 05 Jan 2007
Posts: 101
Location: chennai (India)

PostPosted: Tue Apr 17, 2012 9:50 am    Post subject: Reply to: How to display a value in SAS?
Reply with quote

Hello,

Use PUT <Var Name> command.


if you are using very limited number of records (Say 100 Observations),
You can use PROC PRINT DATA=<Dataset Name >; ==> It displays all the Variable names and its values in a particular dataset.

Suggested not to use PROC PRINT if you are using full volume.

Thanks
-3nadh
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


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

PostPosted: Tue Apr 17, 2012 10:12 am    Post subject:
Reply with quote

PUT _ALL_;
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1491
Location: Chennai

PostPosted: Tue Apr 17, 2012 10:28 am    Post subject:
Reply with quote

Adding to PUT statement for data step,
If the program has macro statements then the equivalent is %PUT. There are also debugging options like
OPTIONS SYMBOLGEN MPRINT MLOGIC MACROGEN;
which can be used for debugging.
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 Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Display FTP Session Count within TSO Yolanda Harvey TSO/ISPF 3 Fri Mar 10, 2017 10:31 pm
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts Display ZEDLMSG without Pressing F1 &... anandgbe CLIST & REXX 8 Thu Dec 15, 2016 4:20 pm
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm


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