Re: Hexadecimal Input Files
- From: SkippyPB <swiegand@xxxxxxxxxxxxxxxxx>
- Date: Mon, 26 Jun 2006 12:30:18 -0400
On 26 Jun 2006 07:23:43 -0700, "Stacy Kay" <stacykw85@xxxxxxxxxxx>
enlightened us:
I guess I didn't give enough information. I am an intern this summer. I
have already finished a program in Assembler. What my task is, is to
convert that program to COBOL. I have had two semesters of COBOL class
experience. The format of the input file I am to use is in
hexadecimal. I just haven't had this experience before with this
format. I've read it before in a JCL dump, but just haven't used it.
Also, I am working on a mainframe environment. I didn't want to have
someone do my work. I just wanted ideas or even just information about
the relationship between COBOL using hexadecimal numbers. I've looked
in some of my mentor's manuals, but nothing goes too deep on this
subject.
If this is the same file you read into your Assembler program then
your task, as far defining the data in the file, is pretty simple. If
you defined a field in the file in the Assembler program as
FIELDA DS CL10
Then in Cobol it would be:
FIELDA PIC X(10).
Also, if you defined a field as:
FIELDB DS PL5
You might define it in Cobol as
FIELDB PIC 9(9) COMP-3 or
FIELDB PIC 9(7)V99 COMP-3.
And finally, by way of example, if you had a field in the Assembler
program defined as:
FIELDC DS XL4
It may be defined in Cobol as:
FIELDC PIC 9(8) COMP
I hope that helps.
docdwarf@xxxxxxxxx wrote:
In article <1151326592.466740.58500@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Stacy Kay <stacykw85@xxxxxxxxxxx> wrote:
I'm currently trying to do a project that uses a Hexadecimal input
file.
Most data I have run across over the past few decades have been in a
format reducible to hexadecimal... it might be that others would be able
to make a similar statement.
From what I've heard, COBOL does not like this format.
This indicates a lack of familiarity with COBOL on your part... is this
indication reflected in your experience?
I have
to do calculations with this input. I'm not sure how to go about
using this input file.
It should be used in accordance with the specifications you were given,
said specs to include the file's format.
How should I declare the input file?
Platform and compiler information might make this question more readily
answered.
Do I need
to some how convert the file to a different format within the program?
Please list any ideas regarding a hexadecimal input file.
My first idea is 'Show what you have already done, so that work is not
repeated and mistakes not perpetuated.'
My second idea is 'Do your own job/homework'... and if this is your job my
third idea is 'Tell Management that your skill-set is not equal to the
task being assigned.'
DD
Regards,
////
(o o)
-oOO--(_)--OOo-
SAM: "What's new Normie?"
NORM: "Terrorists, Sam. They've taken over my stomach and they're
demanding beer."
From the US TV Sitcom, "Cheers"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Remove nospam to email me.
Steve
.
- References:
- Hexadecimal Input Files
- From: Stacy Kay
- Re: Hexadecimal Input Files
- From:
- Re: Hexadecimal Input Files
- From: Stacy Kay
- Hexadecimal Input Files
- Prev by Date: Re: Attribute BASED and LINKAGE SECTION
- Next by Date: Re: Attribute BASED and LINKAGE SECTION
- Previous by thread: Re: Hexadecimal Input Files
- Next by thread: Re: Hexadecimal Input Files
- Index(es):
Relevant Pages
|
|