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
 

 

Formatting a CICS OPERATOR message

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
Binop B

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Thu Feb 02, 2012 6:04 pm    Post subject: Formatting a CICS OPERATOR message
Reply with quote

Hi All,

Is it possible to format a CICS OPERATOR message to include 'new lines' to the way we want.

For example, say the message looks like this ...
Quote:
ABCD1234I yyddd yyyy.mm.dd hh.mm.ss$local 1 12032 2012.02.01 23.00.00 02/01/2012$local 2 12032 2012.02.01 23.30.00 02/01/2012$GMT 1 12033 2012.02.02 05.00.00 02/02/2012$GMT 2 12033 2012.02.02 05.30.00 02/02/2012
The $ in the messages can be used to identify a newline.



If a CICS WRITE OPERATOR is done on this .. The output looks like
Code:
06.23.00 xxxxxxxx  +ABCD1234I   YYDDD   YYYY.MM.DD   HH.MM.SS$LOCAL 1     12032  708
   708              2012.02.01   23.00.00   02/01/2012$LOCAL 2     12032   2012.02.01
   708              23.30.00   02/01/2012$GMT 1       12033   2012.02.02   05.00.00 
   708              02/02/2012$GMT 2       12033   2012.02.02   05.30.00   02/02/2012




Can this be formatted to display as ..
Code:
06.23.00 xxxxxxxx  +ABCD1234I   yyddd   yyyy.mm.dd   hh.mm.ss
   708              local 1     12032   2012.02.01   23.00.00   02/01/2012
   708              local 2     12032   2012.02.01   23.30.00   02/01/2012
   708              GMT 1       12033   2012.02.02   05.00.00   02/02/2012
   708              GMT 2       12033   2012.02.02   05.30.00   02/02/2012
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Thu Feb 02, 2012 6:27 pm    Post subject:
Reply with quote

Did you read this in the Application programming Reference manual in the section on WRITE OPERATOR?
Quote:
TEXTLENGTH(data-value)
specifies the length (fullword binary value) of the text.

If the REPLY option is specified, the length is in the range 0-121 bytes.

If the REPLY option is not specified, the length is in the range 0-690 bytes.

If the length of the text is greater than 113, CICS formats the message in a multiline write to operator (WTO); each line has 69 bytes with a maximum of ten lines.

The output is edited in such a way that each line is broken, if possible, at a space character, The next line starts with a non-space character. If there is no room to reformat the data within the overall limit of 690 bytes of ten lines of 69 bytes, the output is not reformatted.
Back to top
View user's profile Send private message
Binop B

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Thu Feb 02, 2012 6:32 pm    Post subject:
Reply with quote

Yes Robert, did see it ..

Have understood what CICS is doing ... wanted to know if can manipulate that a little bit - at the least on the 'new line' part ..
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Feb 02, 2012 6:38 pm    Post subject: Reply to: Formatting a CICS OPERATOR message
Reply with quote

Binop,

Way back when I was using the DFHWTO CICS Macro, I always used a 69-Byte WTO message and still do to this day, even with the WRITE OPERATOR API.

Robert's excerpt from the manual seems to indicate this still rings true, but further review is warranted.

Mr. Bill
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Thu Feb 02, 2012 7:31 pm    Post subject:
Reply with quote

Binop, since the mainframe doesn't have a "newline" character per se (there is a character named that but it doesn't necessarily cause a console to go to the next line) -- you're not likely to get very far attempting to manipulate it. As the manual quote indicates, what you can do is format your data into 69-byte lines and let CICS handle the line splitting for you.
Back to top
View user's profile Send private message
Binop B

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Thu Feb 02, 2012 8:11 pm    Post subject:
Reply with quote

Thanks Robert and Bill ...

Will look into the feasibility of formatting into 69-byte lines .. Thanks again .. icon_smile.gif
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm
No new posts How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm
No new posts CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm
No new posts CICS Transaction Timeout Hooman24 CICS 2 Sun Apr 16, 2017 2:16 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us