View previous topic :: View next topic
|
Author |
Message |
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
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 |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
Thanks Robert and Bill ...
Will look into the feasibility of formatting into 69-byte lines .. Thanks again .. |
|
Back to top |
|
|
|