How do you create a file with fixed decimal data in it



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

How do you create a file with fixed decimal data in it

Postby chatwithbee » Tue Dec 02, 2008 8:10 am

How do you create a file with fixed decimal data in it?
chatwithbee
 
Posts: 7
Joined: Tue Dec 02, 2008 7:47 am
Has thanked: 0 time
Been thanked: 0 time

Re: fixed decimal data

Postby dick scherrer » Tue Dec 02, 2008 8:17 am

Hello and welcome to the forums,

What is your definition of fixed decimal? That is not a cobol term that i'm familiar with.

Numeric data stored in a mainframe file is typically binary, packed-decimal, or zoned-decimal.

If you show a few values and how you want these values stored in the file, we should be able to help. Show the hex values of the data in the file.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: fixed decimal data

Postby chatwithbee » Tue Dec 02, 2008 8:45 am

well, it was actually my JCL homework and basically my teacher wants me to create a file that has fixed decimal data in it (where you have at least 2 fields, not concatenated, not at the front or back of the record). This file must have at least 6 fields. Name this file: KCNNNNN.COB2.FIXED.DEC.
I have searched everywhere but I don't have a clue what she meant
chatwithbee
 
Posts: 7
Joined: Tue Dec 02, 2008 7:47 am
Has thanked: 0 time
Been thanked: 0 time

Re: fixed decimal data

Postby dick scherrer » Tue Dec 02, 2008 8:59 am

Hello,

I don't have a clue what she meant
Nor do i. . . :?

Can you talk with others who have the same homework assignment? What is the class currently working on in jcl (utilities like iebgener or idcams or filke-aid or sort)? Any reason given why the "fixed decimal" numbers cannot be at the end of the file (i too do not put such things at the beginning of the record)?

It may be time to ask for a clarificaton for the class if none of the others understand what is supposed to be done either.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post