COBOL COMP-3



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

COBOL COMP-3

Postby chetan_007 » Thu Sep 10, 2009 4:31 pm

Hi,
Can we edit COMP-3 data on dataset physically?
If so, how can we achieve it.

Thanks in advance.
chetan_007
 
Posts: 24
Joined: Sun Mar 02, 2008 3:22 am
Has thanked: 0 time
Been thanked: 0 time

Re: COBOL COMP-3

Postby Anuj Dhawan » Thu Sep 10, 2009 6:29 pm

Can we edit COMP-3 data on dataset physically?
Did you mean using something like File-Aid?
Anuj
Anuj Dhawan
 
Posts: 273
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times

Re: COBOL COMP-3

Postby chetan_007 » Thu Sep 10, 2009 7:39 pm

Yes, Please let me know... How to edit Comp-3 fields using FILE AID with steps.
Thanks in advance.
chetan_007
 
Posts: 24
Joined: Sun Mar 02, 2008 3:22 am
Has thanked: 0 time
Been thanked: 0 time

Re: COBOL COMP-3

Postby dick scherrer » Fri Sep 11, 2009 1:08 am

Hello,

To edit comp-3 fields, use HEX ON and type the packed-decimal values as needed.

This will work with tso/ispf or file-aid against the file directly.

There may be some other options using copybooks, but i have never needed to look for this.
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: COBOL COMP-3

Postby Anuj Dhawan » Wed Sep 23, 2009 4:08 pm

but i have never needed to look for this
Not every one is intelligent enough to understand the HEX ON valuses -- you can include me, for one, in that list... :D
Anuj
Anuj Dhawan
 
Posts: 273
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times

Re: COBOL COMP-3

Postby dick scherrer » Thu Sep 24, 2009 12:27 am

Hi Anuj,

I believe it is not a matter of intelligence. . . (every programmer or analyst i've ever worked with was smart enough, some were just kept ignorant :? ) I do believe it is a matter of proper training - either in class or on the job. Once upon a time every student of COBOL or Assembler or other languages was taught how to read hex on a terminal or on paper and work with packed-decimal, binary, and zoned-decimal numbers.

d
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: COBOL COMP-3

Postby Anuj Dhawan » Sat Sep 26, 2009 4:21 pm

Hi Dick,

I was trying to be humorous but it seems I could not convey it well, may be because of language barrier... :(

During my engineering-graduation I had a subject called "Switching Theory"; which had long, very long (phew) exercises on base-2, base-4, base-16 (and probably more) conversions ... probably I met many "ignorant"(to use your term) colleagues there and I still carry those thoughts with me...sigh and that's why I said "matter of intelligence"...umm...mm opinions differ. :)
Anuj
Anuj Dhawan
 
Posts: 273
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times

Re: COBOL COMP-3

Postby dick scherrer » Sun Sep 27, 2009 3:42 am

Hi Anuj,

I was trying to be humorous but it seems I could not convey it well
Both humor and sarcasm are often difficult when typed - even if everyone is "based" in the same language. As you mentioned, having different language background also complicates these.

To me intelligence is the brainpower needed to do a thing. Ignorance is not a measure of brain power, but rather a level of awareness/understanding.

It doesn't bother me if i'm ignorant about lots of things - i can learn. . . :) Hopefully, i'll not become stupid (i.e. lack of intelligence).

d
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: COBOL COMP-3

Postby Anuj Dhawan » Sun Sep 27, 2009 4:10 pm

Sometimes I learn not only technical stuff from you but how to "communicate" as well... :)

Have a good one,

Regards,
Anuj Dhawan
 
Posts: 273
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post