Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Display upon console

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Display upon console
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: 8152
Location: East Dubuque, Illinois, USA

PostPosted: Thu Jun 22, 2017 2:17 am    Post subject: Reply to: Display upon console
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Binary to display characters Roy Ware SYNCSORT 3 Tue Sep 19, 2017 8:46 pm
No new posts DB2 NULL Values display V S Amarendra Reddy DB2 3 Thu Sep 07, 2017 6:59 pm
No new posts Suppress value reported by BREAK in D... Learncoholic DFSORT/ICETOOL 3 Wed Aug 16, 2017 6:03 pm
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us