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

Formatting a CICS OPERATOR message


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Feb 02, 2012 6:27 pm
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
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: 2501
Location: Atlanta, Georgia, USA

PostPosted: Thu Feb 02, 2012 6:38 pm
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Feb 02, 2012 7:31 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
This topic is locked: you cannot edit posts or make replies. how can I proof that message was post... Java & MQSeries 1
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Parallelization in CICS to reduce res... CICS 4
Search our Forums:

Back to Top