View previous topic :: View next topic |
Author |
Message |
jayram99 Beginner
Joined: 16 Aug 2004 Posts: 52 Topics: 21 Location: falls church.va,usa
|
Posted: Thu Mar 17, 2005 10:28 am Post subject: Display statements in SAS Application |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Thu Mar 17, 2005 10:47 am Post subject: |
|
|
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 |
|
 |
jayram99 Beginner
Joined: 16 Aug 2004 Posts: 52 Topics: 21 Location: falls church.va,usa
|
Posted: Thu Mar 17, 2005 10:58 am Post subject: |
|
|
Kolusu,
I tried with PUT statement. Could't see the statements in SYSOUT.
Regards,
jayaram |
|
Back to top |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Thu Mar 17, 2005 11:20 am Post subject: |
|
|
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 |
|
 |
jayram99 Beginner
Joined: 16 Aug 2004 Posts: 52 Topics: 21 Location: falls church.va,usa
|
Posted: Thu Mar 17, 2005 11:24 am Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Thu Mar 17, 2005 11:25 am Post subject: |
|
|
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 |
|
 |
|
|