Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2442
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: 1522
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 display the sign only if the value is... useit DFSORT/ICETOOL 3 Wed Oct 04, 2017 5:53 pm
No new posts Binary to display characters Roy Ware SYNCSORT 3 Tue Sep 19, 2017 8:46 pm
No new posts DB2 NULL Values display V S Amarendra Reddy DB2 3 Thu Sep 07, 2017 6:59 pm
No new posts Suppress value reported by BREAK in D... Learncoholic DFSORT/ICETOOL 3 Wed Aug 16, 2017 6:03 pm
No new posts Display upon console bipinpeter COBOL Programming 1 Thu Jun 22, 2017 12:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us