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?
computational to display
Moderators: Frank Yaeger, Moderator Group
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.
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
- Frank Yaeger
- Moderator
- Posts: 812
- Joined: Sat Feb 18, 2006 5:45 am
- Location: San Jose, CA
- Contact:
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.
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
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
i will rephrase my question
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
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
- Frank Yaeger
- Moderator
- Posts: 812
- Joined: Sat Feb 18, 2006 5:45 am
- Location: San Jose, CA
- Contact:
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.
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
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
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
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page