MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Display statements in SAS Application

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics
View previous topic :: View next topic  
Author Message
jayram99
Beginner


Joined: 16 Aug 2004
Posts: 52
Topics: 21
Location: falls church.va,usa

PostPosted: Thu Mar 17, 2005 10:28 am    Post subject: Display statements in SAS Application Reply with quote

Hi,

I am doing testing of SAS program in mainframe. I need to put display statements(COBOL) in SAS program.

Can you pl. give me the key/syntax for that.

Your immediate response is appreciated.

Jayaram
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Mar 17, 2005 10:47 am    Post subject: Reply with quote

jayram99,

Just look up the PUT statement syntax. The PUT statement is similar to the cobol display statement.

Code:

PUT 'THIS IS MY DISPLAY STATEMENT';


Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jayram99
Beginner


Joined: 16 Aug 2004
Posts: 52
Topics: 21
Location: falls church.va,usa

PostPosted: Thu Mar 17, 2005 10:58 am    Post subject: Reply with quote

Kolusu,

I tried with PUT statement. Could't see the statements in SYSOUT.

Regards,
jayaram
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Mar 17, 2005 11:20 am    Post subject: Reply with quote

This worked for me:
Code:

%MACRO PUTLOG(MSG);           
   DROP __RC;                 
   __RC = _ERROR_;           
   ERROR &MSG;               
   _ERROR_ = __RC;           
%MEND; 

...

%PUTLOG("THIS IS A MESSAGE");

...
Back to top
View user's profile Send private message
jayram99
Beginner


Joined: 16 Aug 2004
Posts: 52
Topics: 21
Location: falls church.va,usa

PostPosted: Thu Mar 17, 2005 11:24 am    Post subject: Reply with quote

Hi

Should i code entire code to display 'THIS IS A MESSAGE'.


%MACRO PUTLOG(MSG);
DROP __RC;
__RC = _ERROR_;
ERROR &MSG;
_ERROR_ = __RC;
%MEND;

...

%PUTLOG("THIS IS A MESSAGE");

OR

%PUTLOG("THIS IS A MESSAGE");

Pl. let me know.

Regards,
Jayaram
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Mar 17, 2005 11:25 am    Post subject: Reply with quote

Quote:

Kolusu,

I tried with PUT statement. Could't see the statements in SYSOUT.



Jayaram,

The PUT statements will be directed to SASLOG DD statement
Code:

//SASLOG DD SYSOUT=*


Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group