Page 1 of 1

computational to display

Posted: Tue Sep 06, 2011 12:12 pm
by holmeroad

can anbody suggest me how to convert COPM fields in a file to display format,

and i have records in between which haven't got comp fields

when i tried to convert my file i had to omit these records as i do not know how to keep them,
is there any way that i can keep these records and convert the records with comp fields, like any overlay?

Posted: Tue Sep 06, 2011 8:41 pm
by DikDude
Post some sample input data (using HEX ON) and the output you want when this is processed.

Mention the recfm and lrecl of the files.

Post the rules for which records to work with or bypass.

Posted: Tue Sep 06, 2011 11:07 pm
by Frank Yaeger

It depends on exactly what COMP fields you have. The following might help you figure it out: ... 0630155256

If that doesn't help, then you need to give more details about the type of COMP fields you want to display and show examples.

i will rephrase my question

Posted: Wed Sep 07, 2011 7:47 am
by holmeroad
sorry about my previous post

i have been able to convert the comp fields to readable format

but my exact problems comes where we have records that contain no comp fields

scenario: we have a record for the company name and then we have trnx records for that company lets say 10 records which have comp fields starting at same position and ending at same position then again we have 12th record another company name
my requirement is to convert the comp fields and leave name records as it is at the same position

i do not need the code to convert i just need an idea how to keep the name records as it is in the file and convert only the trxn records

thanks in advance

Posted: Wed Sep 07, 2011 9:57 pm
by Frank Yaeger
If you can identify the name records and trnx records in some way (e.g. different value in position 1), you can use DFSORT IFTHEN clauses to handle the records differently. For more information on IFTHEN clauses, search for "IFTHEN" under OUTFIL in the "z/OS DFSORT Application Programming Guide": ... 0630155256

If you want more specific help, you need to give more details. Show an example of the records in your input file (relevant fields only) and what you expect for output. Explain the "rules" for getting from input to output. Give the starting position, length and format of each relevant field. Give the RECFM and LRECL of the input file.

Posted: Thu Sep 08, 2011 11:11 am
by holmeroad
thanks for the suggestion it worked