IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to display a value in SAS?


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Tue Apr 17, 2012 1:09 am
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
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: 2481
Location: Netherlands, Amstelveen

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

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

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Tue Apr 17, 2012 10:28 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts How to display the leading zeros of a... DB2 7
No new posts SDSF display Max-RC in different colors TSO/ISPF 4
No new posts Converting a file from PD to display ... SYNCSORT 4
No new posts Unable to display comp variable COBOL Programming 4
No new posts Adding FIND to ISPF Panel display of ... TSO/ISPF 3
Search our Forums:

Back to Top