Generate a new DISC TEXT file name with every run

Herald.Kaffka at westfraser.com Herald.Kaffka at westfraser.com
Tue Apr 1 15:44:26 CDT 2014


Do a define from the calling command file/screen,

Command file example:
$ SYSTIME               = F$TIME()
$ DATE                  = F$CVTIME("",,"YEAR")  + -
                          F$CVTIME("",,"MONTH") + -
                          F$CVTIME("",,"DAY")
$!
$ DEFINE/NOLOG TESTNAME SYS$LOGIN:TESTNAME_'DATE'.TXT


$ show log testname
   "TESTNAME" = "SYS$LOGIN:TESTNAME_20140401.TXT" (LNM$PROCESS_TABLE)


pretty much the same thing within quick, just have to format sightly 
differently.




From:   greg greg <cassinih at hotmail.com>
To:     "powerh-l at lists.sowder.com" <powerh-l at lists.sowder.com>, 
Date:   04/01/2014 03:22 PM
Subject:        Generate a new DISC TEXT file name with every run
Sent by:        
<powerh-l-bounces+herald.kaffka=westfraser.com at lists.sowder.com>



Hi,
       Is there a way of having the system generate a new Text file name 
with every run of a report.

Eg:

Set report device disc name TESTNAME  plus < SYSDATE>                    ; 
File name  TESTNAME-20030401.txt

In that way the first text file will not be overwritten when  the report 
runs automatically every day. Or
is there a way of doing this with COPY or RENAME also.
 
OPENVMS 8.3
POWERHOUSE  8.40G

Thanks in advance. --
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l at lists.sowder.com
Subscribe: 'subscribe' in message body to 
powerh-l-request at lists.sowder.com
Unsubscribe: 'unsubscribe &lt;password&gt;' in message body to 
powerh-l-request at lists.sowder.com
http://lists.sowder.com/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.
Add 'site:lists.sowder.com powerh-l' to your search terms to search the 
list archive at Google.


----------------------------
This e-mail message and any attachments are confidential.  Any dissemination or use of this information by a person other than the intended recipient is unauthorized.  If you are not the intended recipient, please notify me by return e-mail, do not open any attachment and delete this communication and any copy.  Thank you



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sowder.com/pipermail/powerh-l/attachments/20140401/9bb519dc/attachment.htm>


More information about the powerh-l mailing list