002-04,IGC0005E error



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

Re: 002-04,IGC0005E error

Postby dick scherrer » Sat Sep 03, 2011 12:00 am

Hello,

As i was "Code"ing the stuff, i noticed that the blksize in the "dataset info" is 32760 but the BLOCK CONTAINS says BLOCK CONTAINS 4096 CHARACTERS . . .

Also, unless specifically requested, one should not post an entire compile or a dump, etc. . .
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: 002-04,IGC0005E error

Postby BillyBoyo » Sat Sep 03, 2011 1:38 am

What a truly horrible program.

Typically, the comments are useless. DB2? Not a sign of it.

File-status specified, but never checked.

The author/updater(s) don't know much about Cobol, see the use of EXIT. See the PERFORM "some-exit-para". See the exit para with some code on. Reference modification abounds. More useless comments in the program. Idiotic data-names (WS-77-K, where over 90% of the name is useless duplication with many others). Repetitions of code. Inconsistent use of END- structures. Blanks before periods in data division. Yoy.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: 002-04,IGC0005E error

Postby steve-myers » Sat Sep 03, 2011 5:46 am

dick scherrer wrote:... As i was "Code"ing the stuff, i noticed that the blksize in the "dataset info" is 32760 but the BLOCK CONTAINS says BLOCK CONTAINS 4096 CHARACTERS . . .
That was the reason (well, one of them) for VBS: to allow very long logical records in small physical records. This also made sense in terms of 1968 tape hardware: the best drive at the time could correct a single bit error, and it was less likely a relatively short block would have multiple bit errors.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: 002-04,IGC0005E error

Postby jaggz » Sat Sep 03, 2011 8:26 am

Hi ,

Apology for not being more precise. I will look into the coding again .Again apology for not including the entire codings in the code tags.


Thanks all for valuable suggestions.

Regards,
Jaggz
User avatar
jaggz
 
Posts: 356
Joined: Fri Jul 23, 2010 8:51 pm
Has thanked: 8 times
Been thanked: 5 times

Re: 002-04,IGC0005E error

Postby dick scherrer » Sat Sep 03, 2011 10:09 am

Hi Steve,

Yup, i'm familiar with VBS.

I suspect that the program has to conform with the actual file. Had the BLOCK CONTAINS been left out of the code, it might have been ok, but as specified they seem to be in conflict. Possibly the system forgives 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: 002-04,IGC0005E error

Postby steve-myers » Sat Sep 03, 2011 10:18 am

Hi Dick -

I agree, but with my extremely limited knowledge of Cobol I would not have posted a comment, especially considering the source of the original post.

Steve M
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Previous

Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post