Author Topic: How to suppress carriage control characters in CMOD  (Read 3075 times)

Siva

  • Guest
How to suppress carriage control characters in CMOD
« on: March 21, 2017, 11:22:07 PM »
Hi All,

We have a line data file and it has carriage control characters in the first column. The carriage control characters are "0", "1", "-", " ". As per ASCII standard, "0"
will double space the line while viewing. We have a requirement to ignore the double space. Is there an option in cmod to suppress the character "0" alone
while retrieving the data.

Server : z/Os 8.5
Indexer : ACIF

ewirtz

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Re: How to suppress carriage control characters in CMOD
« Reply #1 on: March 22, 2017, 03:57:51 AM »
Hi Siva,

in my opinion it's a bug in the report. With my knowledge you can only change it by using an input exit.

regards

Egon

scottnys

  • Jr. Member
  • **
  • Posts: 38
    • View Profile
Re: How to suppress carriage control characters in CMOD
« Reply #2 on: April 13, 2017, 11:31:21 AM »
Agreed.  Preferable to have changes to the report altered by the programmers.  After successfully using Input Exits, creating another to meet this need is easy.  The input exit can easily change the "0" to a SPACE or whatever.  Remember that using Input Exits, OS390 indexing must be used.

scottnys

  • Jr. Member
  • **
  • Posts: 38
    • View Profile
Re: How to suppress carriage control characters in CMOD
« Reply #3 on: April 13, 2017, 12:14:44 PM »
Siva,
    In looking closer at your posting, you wanted to remove "0" only on viewing by the client, but leave it there when printing? (with ODF?)  if that is true, there is an exit (documented, we haven't used it) that allows you to massage the report PRIOR TO VIEWING.  The "client preview exit".

The client preview exit can be used to add, remove, or reformat data before the
document is presented to the client. For example:
v Remove pages from the document, such as banner pages, title pages, all pages
but the summary page, and so on.
v Remove specific words, columns of data, or other information from the
document. That is, omit (“white out”) sensitive information such as salaries,
social security numbers, and birth dates.
v Add information to the document, for example, a summary page, data analysis
information, and Confidential or Copy statements.
v Reformat data contained in the document, for example, reorder the columns of
data.
Note:
1. The client preview exit is not called for all document retrievals. In particular, it
is not called for functions that use the so-called Bulk Retrieval method of
retrieving documents or for server printing. For example, running the ARSDOC
GET function without specifying the -n parameter performs a bulk retrieval,
and documents retrieved will not be presented to the client preview exit.
2. The client preview exit is not called for server printing.
3. If a request is made to retrieve a large object document, care should be taken to
make certain that the client preview exit does not remove any pages from the
document. The large object segment size and page navigation information are
based on the number of pages that existed when the document was loaded on
the server. Unexpected results may occur if this information is changed.
4. The client preview exit is enabled at the application level. The exit is invoked
only for the specified applications.
“Interface exit components” on page 214
“Format” on page 214
“General Description” on page 215
Server printing
arsuprep dll
Based on Application
- Remove pages
- Remove words
- Add information
- Reformat data
OnDemand
archive
C or COBOL source code
Document
in HFS
arsdoc get: bulk document retrieval
Single document retrieval
Figure 18. Overview of the client preview exit
©

chuckalugk

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
Re: How to suppress carriage control characters in CMOD
« Reply #4 on: February 25, 2020, 02:08:46 PM »
What is The client preview exit ?  Is it available to all?

Ed_Arnold

  • Hero Member
  • *****
  • Posts: 1199
    • View Profile
#zOS #ODF