IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New If the various suggestions don't help
You may want to place a do nothing command at the end. It could be a timing issue. last process completes at start of a cycle and the move tries to execute within the same cycle. Adding a dir or anything would give processor enough time to complete.

Have seen on windows, and on big iron.
A good friend will come and bail you out of jail ... but, a true friend will be sitting next to you saying, "Damn...that was fun!"
New I hate timing dependant problems!
I had a user start running jobs on my system for the 1st time today.
His very first job aborted with an error.

There are many steps in the run, doing the same things for
different files. All other files / jobs succeeded.

When I reran the failed job, it worked just fine.

This error said it could not lookup a customer id in the
mainframe VSAM file. The only way that could happen
would be the project id did not match anything or there
was an underlying failure in the mainframe VSAM SQL
interface.

But previous tests showed the project / customer ID have
been there for months.

I emailed the MF sysprog and asked if there was anything
going on in the error logs that could help.

Nope.

I emailed the MIS COBOL programmers, asking if they were
doing anything with the file that could lock me out.

Nope.

Then one of them responded, that they have seen this type
of error before in their programs, but they reran and it
worked and they never followed up.

ARRGG!!

The MF sysprog followed up, telling me he noticed an FTP log
entry in that time frame. Our accounting department has a
process that overwrites that file every day.

During the upload, it is inaccessible to everyone else. And
if I don't code for the error condition, my program will
abort.

For 27 seconds a day.

This has been this way for years, and none of our current
COBOL programmers have ever coded around it. They'd rather
have their code abort occasionally and rerun it.

And my user managed to hit this the 1st time he ever used
my program!!!!!

And this user triggered the Windows rename / lock problem twice, as
opposed to be seeing it once in 6 months previously.
New First time I saw it was in COBOL class
Learning loops. One student straight coded, no loop. Program kept abending. Not knowing what we were looking at, we dumped the error log and looked at the generated assembler code. Comparing first pass to 2nd pass we found one instruction out of sequence. Student (not me) put in goto dummy and goto back everything worked. Since then I've always been aware of timing issues. They pop up at the most inopportune times. As you have just seen. :-(
A good friend will come and bail you out of jail ... but, a true friend will be sitting next to you saying, "Damn...that was fun!"
New Done. And I added another move
\nSET CX_FONT_DIRECTORY=c:\\nofont\nt:\ncd  \\afp_server\\watch\\in_process\ndate /t\ntime /t\necho Executing %1\ncmd /c %1\ndate /t\ntime /t\nREM  KLUDGE - try a couple of moves for when the move fails.\nREM  The extra should not hurt\ndir\nmove %1 ..\\done\ndir\nmove %1 ..\\done\n

New Lemme know if it worked.
A good friend will come and bail you out of jail ... but, a true friend will be sitting next to you saying, "Damn...that was fun!"
     File locking problem - (broomberg) - (22)
         I would assume that... - (ben_tilly) - (3)
             Grrr... - (broomberg) - (2)
                 I'm guessing, obviously - (ben_tilly)
                 I'm guessing, obviously - (ben_tilly)
         Turn off Opportunistic locking for those files. - (folkert) - (11)
             I was thinking of the same thing - (broomberg)
             Done - (broomberg) - (3)
                 You sure I don't want fake oplocks instead? -NT - (broomberg) - (1)
                     NEVER. - (folkert)
                 Not that I am aware of. Of course... - (folkert)
             And "blocking locks" should be set to off. -NT - (Andrew Grygus) - (5)
                 Err? - (broomberg) - (4)
                     I've seen it produce time-outs. -NT - (Andrew Grygus)
                     I've seen it produce time-outs. -NT - (Andrew Grygus) - (2)
                         In that case: Done -NT - (broomberg)
                         And double posts, too! ;-) -NT - (Yendor)
         If the various suggestions don't help - (jbrabeck) - (4)
             I hate timing dependant problems! - (broomberg) - (1)
                 First time I saw it was in COBOL class - (jbrabeck)
             Done. And I added another move - (broomberg) - (1)
                 Lemme know if it worked. -NT - (jbrabeck)
         Happens when you delete a file and it's opened elsewhere - (ChrisR)

Powered by sun spots!
110 ms