computational to display

In this Mainframe Forum - You can post your queries on DFSORT, ICETOOL , SyncSort & JCL Utilities

Moderators: Frank Yaeger, Moderator Group

Post Reply
holmeroad
Member
Posts: 9
Joined: Tue Sep 06, 2011 11:53 am
Location: MUMBAI

computational to display

Post by holmeroad » Tue Sep 06, 2011 12:12 pm

Hi,

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?

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Tue Sep 06, 2011 8:41 pm

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.
Last edited by DikDude on Tue Sep 06, 2011 11:43 pm, edited 1 time in total.
Have a good one

User avatar
Frank Yaeger
Moderator
Posts: 812
Joined: Sat Feb 18, 2006 5:45 am
Location: San Jose, CA
Contact:

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

holmeroad,

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

http://publibz.boulder.ibm.com/cgi-bin/ ... 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.
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort

holmeroad
Member
Posts: 9
Joined: Tue Sep 06, 2011 11:53 am
Location: MUMBAI

i will rephrase my question

Post by holmeroad » Wed Sep 07, 2011 7:47 am

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

User avatar
Frank Yaeger
Moderator
Posts: 812
Joined: Sat Feb 18, 2006 5:45 am
Location: San Jose, CA
Contact:

Post by Frank Yaeger » Wed Sep 07, 2011 9:57 pm

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":

http://publibz.boulder.ibm.com/cgi-bin/ ... 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.
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort

holmeroad
Member
Posts: 9
Joined: Tue Sep 06, 2011 11:53 am
Location: MUMBAI

Post by holmeroad » Thu Sep 08, 2011 11:11 am

thanks for the suggestion it worked

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others