Author Topic: Can CMOD handle 'Channel Oriented Carriage Control'.  (Read 4945 times)

pankaj.puranik

  • Sr. Member
  • ****
  • Posts: 374
    • View Profile
Can CMOD handle 'Channel Oriented Carriage Control'.
« on: April 30, 2012, 03:45:26 AM »
Hi

I have a report that uses an overlay.
For data to properly fit on the form, the input file has carriage control characters.
After passing the report through the indexer, the output file is not having proper line spacing.
This makes me feel that CMOD is not able to interpret this type of CC.

The CC in the files are : 1, 3, 4, etc.

Does anyone have experience with this type of CC.

CC=YES
CCTYPE=A
CONVERT=NO
CPGID=500
MCF2REF=CPCS

pankaj.puranik

  • Sr. Member
  • ****
  • Posts: 374
    • View Profile
Re: Can CMOD handle 'Channel Oriented Carriage Control'.
« Reply #1 on: July 26, 2012, 12:19:53 AM »
Does anyone have a solution/suggestion to this issue?
We are using EBCDIC Line data.

Greg Ira

  • Full Member
  • ***
  • Posts: 240
    • View Profile
Re: Can CMOD handle 'Channel Oriented Carriage Control'.
« Reply #2 on: July 26, 2012, 07:27:41 AM »
We don't use EBCDIC Channel Oriented CC so I can't speak as to whether CMOD can handle that.  If it doesn't maybe you could use an input exit to transform the EBCDIC CC to Machine CC?  I know CMOD can handle that.

Greg Ira

  • Full Member
  • ***
  • Posts: 240
    • View Profile
Re: Can CMOD handle 'Channel Oriented Carriage Control'.
« Reply #3 on: July 26, 2012, 07:33:05 AM »
In addition, according to the manual it does look like CMOD should handle your Channel Oriented CCs.  Did you double check the LRECL?

pankaj.puranik

  • Sr. Member
  • ****
  • Posts: 374
    • View Profile
Re: Can CMOD handle 'Channel Oriented Carriage Control'.
« Reply #4 on: July 27, 2012, 01:13:40 AM »
Thanks Greg.
The Rec Length is correctly mentioned.

I have one more question.
After CMOD process the IBMLINE data or any other data, does it still have the carriage control byte or it inserts the spaces after interpreting the CC and then store the file?

So when I retrieve a file stored in CMOD in native format, would it have CC bytes or actual spaces?

Greg Ira

  • Full Member
  • ***
  • Posts: 240
    • View Profile
Re: Can CMOD handle 'Channel Oriented Carriage Control'.
« Reply #5 on: July 27, 2012, 06:49:15 AM »
It would still have the CC bytes, it doesn't overwrite them

ewirtz

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Re: Can CMOD handle 'Channel Oriented Carriage Control'.
« Reply #6 on: August 05, 2012, 11:47:16 PM »
Hello Pankaj,

only some of the possible ansi control characters have a well defined behaviour: '+', '0', ' ' and '1'. The other are configured individually. I don't know how CMOD does treat such ansi characters. But I think a general solution for such characters is not possible.  So maybe you have to create an index exit to provide only 'well known ansi characters' or provide a preview exit that corrects such problematic characters.

Regards

Egon