Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: Declarative USE AFTER question
I agree that adding commands is the ideal... specifying exactly what
should happend if you get some wild error.  But my question goes back
to what does the system do when you get a strange error, if the USE
statement has NO commands following it when you get a fatal error?
-Does the system stop and notify you of a fatal error?
-Does the program terminate?
-Or, does the system just return back to the line following the actual
file I/O that it failed on, subsequently continues on with processing
as if nothing happened?


Report this thread to moderator Post Follow-up to this message
Old Post
apple.time@yahoo.com
02-08-06 01:52 PM


Re: Declarative USE AFTER question
apple.time@yahoo.com wrote:
> I agree that adding commands is the ideal... specifying exactly what
> should happend if you get some wild error.  But my question goes back
> to what does the system do when you get a strange error, if the USE
> statement has NO commands following it when you get a fatal error?
> -Does the system stop and notify you of a fatal error?
> -Does the program terminate?
> -Or, does the system just return back to the line following the actual
> file I/O that it failed on, subsequently continues on with processing
> as if nothing happened?
>
The program does your "- Or" and if you have a fatal error then it goes
belly up.

So far I've restrained from commenting on your various messages. How can
you *possibly* claim to have 20 years COBOL EXPERIENCE ? In Your 'Code
Assessment' you are way in over your head !

Jimmy, Calgary AB

Report this thread to moderator Post Follow-up to this message
Old Post
James J. Gavan
02-08-06 01:52 PM


Re: Declarative USE AFTER question
apple.time@yahoo.com wrote:
> I agree that adding commands is the ideal... specifying exactly what
> should happend if you get some wild error.

What on God's earth would compel you to the conclusion that specifying
exactly what should happen if you get some wild error is ideal? You're
trying to solve the wrong problem.

I believe the original programmer did not CARE what would happen if he got a
wild error - he just didn't want the program to abort.

> But my question goes back
> to what does the system do when you get a strange error, if the USE
> statement has NO commands following it when you get a fatal error?
> -Does the system stop and notify you of a fatal error?

Already answered. Usually NO. This is the desired result. Remember, I don't
give a shit whether the CPU is on fire, the tape girl has a wardrobe
malfunction, somewhere in the world, a kid's Yo-Yo malfunctioned, or if he
carried the merely palatable bits on his shoulder or in his handkerchief.

> -Does the program terminate?

Already answered. Usually NO. This is the desired result.

> -Or, does the system just return back to the line following the actual
> file I/O that it failed on, subsequently continues on with processing
> as if nothing happened?

Already answered. Usually YES. This is the desired result. In fact, "denial"
is a philosophy generally leading to a happier and more productive life.



Report this thread to moderator Post Follow-up to this message
Old Post
HeyBub
02-08-06 01:52 PM


Re: Declarative USE AFTER question
HeyBub wrote:
>
> apple.time@yahoo.com wrote: 
>
> What on God's earth would compel you to the conclusion that specifying
> exactly what should happen if you get some wild error is ideal? You're
> trying to solve the wrong problem.
>


It makes perfect sense to display file, error code, what the program was
trying to do at the time (I used to use WS items primed before the I/O
operation but now  there are reserved words for the purpose).
ESPECIALLY if it's some off-brand error that couldn't be planned for.
If I have to figure out what happened if a program crashes for I/O
reasons I expect the programmer - if he knows what he's doing - to give
me as much help as possible.

One guy I know used to display something like 'I/O error on file used
for update'. Great if there happened to be only one such file in the
program.  Usually we weren't so lucky.  I wasn't in charge so I couldn't
make him change.

Why get so het up?

PL

Report this thread to moderator Post Follow-up to this message
Old Post
Peter Lacey
02-08-06 01:52 PM


Re: Declarative USE AFTER question
In article <11uae44gp14hjb0@news.supernews.com>,
HeyBub <heybubNOSPAM@gmail.com> wrote:

[snip]

>In fact, "denial"
>is a philosophy generally leading to a happier and more productive life.

Oh, I *cannot* resist...

... it is not, is Not IS NOT!

DD


Report this thread to moderator Post Follow-up to this message
Old Post

02-08-06 01:52 PM


Re: Declarative USE AFTER question
"Alistair" <alistair@ld50macca.demon.co.uk> wrote in message
news:1139150473.187064.6820@g43g2000cwa.googlegroups.com...
> I once worked at a site where a new-whizzkid programmer was brought in...
> he admitted to not being knowledgable in assemble[r], as he was more of a
cobol programmer.
>...
>  He was subsequently sent on a CICS course and left to go to a bank in
> Edinburgh as their 'CICS expert'!

This is the kind of thing I've spent about twenty years trying to correct:
non-professional behavior by a few misguided and/or 'ethically-challenged'
individuals.

If we don't do a better job of policing ourselves, we'll some day wake up to
discover "programmer/analyst" and "information technology consultant" jokes
are as common as jokes about laywers, Congressmen and used-car salesmen.

--
Michael Mattias
Tal Systems Inc.
Racine WI USA










Report this thread to moderator Post Follow-up to this message
Old Post
Michael Mattias
02-08-06 01:52 PM


Re: Declarative USE AFTER question
Peter Lacey wrote:
> HeyBub wrote: 
>
>
> It makes perfect sense to display file, error code, what the program
> was trying to do at the time (I used to use WS items primed before
> the I/O operation but now  there are reserved words for the purpose).
> ESPECIALLY if it's some off-brand error that couldn't be planned for.

Bah! I can imagine a program that awakens every ten minutes to check whether
the Yak-Fat Manifest File has been uploaded from Bangladesh. Unfortunately,
it's the monsoon season, all the yaks are dead, and, in fact, the entire
cottage industry involved with harvesting yak fat has decamped, enmasse, for
whale-hunting school.

To be sensible, as you suggest, this semi-somnolent program will commence to
XXXXX like the third monkey on Noah's gangplank six times an hour. In fact,
it may not even finish bitching about the first instance before it's time to
re-XXXXX !

Point is, in this - admittedly rare - state, the programmer does not want
the OS to intervene with a core dump, alarm bells, and complete blood count.
It's sufficient that the program know whether the file exists and the
programmer can test that condition directly - IF he can get the OS to shut
up ( which is what a no-op DECLARATIVES will do).




Report this thread to moderator Post Follow-up to this message
Old Post
HeyBub
02-08-06 01:52 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 08:18 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.