HP3000-L Archives

September 1999, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Stan Sieler <[log in to unmask]>
Reply To:
Stan Sieler <[log in to unmask]>
Date:
Tue, 7 Sep 1999 10:50:20 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (28 lines)
Re:
>
> Just do a file equation in your program using the HPCICOMMAND with a
> filereference which depends on the day and time (like an Editor work file)
> and open it in the COBOL program using the formaldesignator that does not
> change.

This technique won't work reliably, because more than one copy of the COBOL
program could be running at the same time, with:

   process A                 process B

   issue file equate FOO=FUM
                             issue file equate  FOO=FIE

   open file "FOO", get "FIE"
                             open file "FOO", get "FIE"

The best answer is to request a unique name from within the program,
and another poster suggested a method of doing this from COBOL.

Note: the timing problem with simultaneous copies also applies to
JCWs and session variables.

--
Stan Sieler                                          [log in to unmask]
                                         http://www.allegro.com/sieler/

ATOM RSS1 RSS2