Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (C)
Guardian Procedure Calls Reference Manual—522629-013
3-171
CREATEPROCESSNAME Procedure
(Superseded by PROCESSNAME_CREATE_
If a standard temporary file name is used, the file is purged when the first process
closes it because there are no other opens for the file. The second process is then
unable to access the file. An example of using CREATEPROCESSNAME:
INT .TEMP^FNAME[0:11] := ["$VOL1 ", 9 * [" "]];
.
.
CALL CREATEPROCESSNAME ( TEMP^FNAME[4] ); ! returns $zddd
TEMP^FNAME[4].<0:7> := "Z"; ! makezzdaa subvol
TEMP^FNAME[8] ':=' TEMP^FNAME[4] FOR 4; ! make file name
CALL CREATE ( TEMP^FNAME );
IF < THEN ... ; ! error.
.
.
The name of the file in the TEMP^FNAME array is:
$VOL1 Zzdaa Zzdaa