fields from comp and comp-3 to zoned and return

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
mangela
Member
Posts: 5
Joined: Wed Jan 24, 2007 5:22 pm
Location: Italy

fields from comp and comp-3 to zoned and return

Post by mangela » Tue Feb 06, 2007 3:26 pm

Hi all,
Someone has some suggestion to resolve my problem?
I have little time and the following problem to resolve.
I must read a sequential dataset with variable length and 200 various types of record-format .
I must transport the fields of the record on file excel to modify them and to bring back them on the original file.
The record that I read is composed from a format that is the part that I must modify and a fixed part that does not interest me of 160 byte.
I do not know assembler that someone says to me could resolve the problem.
Tanks
Regards
mangela

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Mon Feb 12, 2007 1:10 am

mangela,

have you resolved your problem? If not:

1. do you have copybooks defining the 200 different record formats?

2. is there only one format you wish to deal with, or all 200?

3. before going to assembler (without experience) I would use REXX or even DFSORT/ICETOOL.

4. how often must this conversion run? will this be in production?
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

mangela
Member
Posts: 5
Joined: Wed Jan 24, 2007 5:22 pm
Location: Italy

Post by mangela » Mon Feb 12, 2007 10:39 pm

I am trying to resolve defining the record with 200 redefines of the
second part.
I can cut and paste the second part from a record of an other sequential data base.
This conversion run sometimes when some items ned to be modify.
I cannot use the sort why I have only dfsort 13 that does not
support the passage from ZD to PD or BI.
Among other things I do not know REX and creed not to have it.
In these dfferents records there are some tables and some redefines.
tanks.
Regards
Mangela

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Mon Feb 12, 2007 11:03 pm

I realize that english is not your first tongue, so bear with me, please.

you have 200 different record formats. You need to extract data from every type?

do the 200 different record formats have anything in common?


need an answer to these two questions, before anyone can help.

if you know german, try that; it is my second language. I can then edit your post and provide an english translation for the forum.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

mangela
Member
Posts: 5
Joined: Wed Jan 24, 2007 5:22 pm
Location: Italy

Post by mangela » Tue Feb 13, 2007 12:10 pm

if you know german, try that; it is my second language. I can then edit your post and provide an english translation for the forum.
Yes I need extract data from every type. The 200 records have in common an item that has the same name in every tracing.
The field in common is last before the fields that interest to me in the record format.
Sorry I don't speak German
tanks
regards
mangela

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Tue Feb 13, 2007 5:32 pm

mangela,

you only need one field? and this field is in the same position within each record type?

you have a minimum length record and a max length record type. Is this one field located within the min record length?
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

mangela
Member
Posts: 5
Joined: Wed Jan 24, 2007 5:22 pm
Location: Italy

Post by mangela » Wed Feb 14, 2007 12:56 pm

I do need many fields of a record. The fields that I need beginning to the
Same position in every record type. I have the record that I must analyze in which the fields that I must analyze, the items I must analyze beginning from the same point. I do not have the definition of this record but I have the definition of an other archives whose second part that always begins to the same point coincides with the data that I must analyze

mangela
Member
Posts: 5
Joined: Wed Jan 24, 2007 5:22 pm
Location: Italy

Post by mangela » Sun Feb 25, 2007 5:38 pm

Well I don't need only one field but many fields. Yes this fields beginning in the same position.

Yes I have a minimum length record and a max length record type.
Regards
Mangela

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Fri Mar 02, 2007 4:39 pm

if the fields in question are in the same relative position within whatever record you are working with, then define your FD Record with a Min and Max record and a third which defines the fields you wish to manipulate.

sorry about the tardy reply.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

academyindia4

Topic deleted by Admin

Post by academyindia4 » Mon Feb 01, 2016 10:49 pm

<< Content deleted By Admin >>

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