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

Display upon console


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bipinpeter

Active User


Joined: 18 Jun 2007
Posts: 213
Location: Cochin/Kerala/India

PostPosted: Thu Jun 22, 2017 12:35 am
Reply with quote

Hello,

I am trying to display messages in console.. If I display string of 200 bytes, in mainframe log the first 100 bytes will be displayed in first line and next 100 bytes will be displayed as new message in log. How we can display the whole string as single message, even if it is displayed in multi line how we can specify the continuation character


Bipin Peter
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Jun 22, 2017 2:17 am
Reply with quote

First, it is a BAD IDEA to display messages to the console. There are generally tens to hundreds of messages per minute flowing to the console already, and the operators do not need you adding to the noise level.

Second, consoles are fixed size as part of the IPL process and cannot easily be changed. If your message is longer than fits on one line, then you are going to get a two-line message and your only recourse will be to shorten the message to fit on one line. You cannot specify a continuation character, either, as console definitions are set for the entire system (or sysplex).

Usually there is some way to detect long messages, such as:
Code:
N 0200000 PROD     2017172 14:42:11.76 STC13530 00000090  /HASP125 CICSP2   INTRDR     SKIPPING FOR JOB CARD FROM STC13530
S                                                         CICSP2                                                         
The initial N on each line indicates a new message, while the S means the message continued from the previous line. PROD is the LPAR name, followed by the Julian date and time of day of the message, then the JES ID (STC13530 means started task with JES number 13530; TSU16012 would be TSO user task 16012; JOB17259 would be batch job 17259) and the actual message starts in column 60.

So most likely what you want to know is already there if you know how to read the console lines. But stop writing to the console anyway.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to display the leading zeros of a... DB2 7
No new posts Console Commands All Other Mainframe Topics 4
No new posts ZOS Console commands through USS REXX? CLIST & REXX 5
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
Search our Forums:

Back to Top