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/