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
 

 

Display some messages in SYSOUT and SYSPRINT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
Abi

New User


Joined: 27 Jul 2005
Posts: 35
Location: Chennai

PostPosted: Tue Nov 29, 2005 5:24 pm    Post subject: Display some messages in SYSOUT and SYSPRINT
Reply with quote

Hi,
I want some messages to be displayed in SYSPRINT & Some in SYSOUT...Is that possible... if yes ...then how ?

This was asked in an interview. icon_rolleyes.gif
Back to top
View user's profile Send private message

jon_s_rice

Active User


Joined: 24 Mar 2005
Posts: 102
Location: Douglasville, GA USA

PostPosted: Tue Nov 29, 2005 5:49 pm    Post subject:
Reply with quote

Assuming you are using COBOL. A message will go to SYSOUT as a result of a DISPLAY statement. This can be changed in a compile option. To display to SYSPRINT it would have to be defined as a file.
Back to top
View user's profile Send private message
karthik1680
Warnings : 2

New User


Joined: 14 May 2005
Posts: 64
Location: chennai

PostPosted: Wed Nov 30, 2005 7:26 am    Post subject: Re: Display some messages in SYSOUT and SYSPRINT
Reply with quote

hi jon_s_rice,
could explain detaily plz?
Back to top
View user's profile Send private message
jon_s_rice

Active User


Joined: 24 Mar 2005
Posts: 102
Location: Douglasville, GA USA

PostPosted: Wed Nov 30, 2005 8:41 am    Post subject:
Reply with quote

In your COBOL program.
Code:


     SELECT PRINTER-FILE
         ASSIGN TO S-SYSPRINT.

....
 FD  PRINTER-FILE
     RECORD CONTAINS 133 CHARACTERS.

 01  PRINTER-FILE-RECORD         PIC X(133)     JUSTIFIED RIGHT.

in the procedure division
for SYSPRINT
     WRITE PRINTER-FILE-RECORD AFTER ADVANCING 1 LINE.

for SYSOUT
             DISPLAY 'GREATER THAN KEY    ',
Back to top
View user's profile Send private message
Abi

New User


Joined: 27 Jul 2005
Posts: 35
Location: Chennai

PostPosted: Thu Dec 01, 2005 12:17 pm    Post subject:
Reply with quote

Hi jon_s_rice,
Thanks for the info
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 -> Mainframe Interview Questions 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