[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Date variables in Xy III - one solution
- Subject: Date variables in Xy III - one solution
- From: marc@xxxxxxxx
- Date: Tue, 21 Oct 2003 09:47:35 +1300 (NZDT)
I wrote a small XPL pgm to do exactly what you are asking.
It was for a backup procedure I was writing, and we wanted to have the backup
directories using the date.
I have also written a similiar routine to produce a unique folder name for
program output. As long as the program is run with more than a minute between
each run, it creates a new folder with the time as a name.
In English (I haven't got the program here):
ne [temp file name]
BC today XC
ctrl-home home
CI /January /01/ XC
CI /February /02/ XC ...
...CI /December /12/ XC
BC se /, /XC DF ctrl-right arrow DF ctrl-left arrow F8 BC ci /,//XC DW ≪sv20≫
ex
I hope this makes sense to you.
Marc
Quoting Patricia M Godfrey :
> Is there any way to get a text date in Xy III (i.e., not the ≪DA≫
> code
> but the plain ASCII numbers of a date) in a purely numeric format
> (e.g.,
> 20031020)? XyIII won't save a date with SX; one gets "command entry
> error." I've tried putting it in quotes, à la Carl's very, very helpful
> examples--thanks, Carl; clearest discussion of this topic I've seen--,
> saving it twice with ≪SV01≪DAyyyymmdd≫≪SV02,≪IS01≫≫, even
> loading
> a printer file with a DF DA=yyyymmdd and then issuing Today. Nothing
> works. I suppose one could use ≪IS01≫ and then typef, but one of the
> reasons I'm trying to do this in XyIII is so I WON"T have to typef, but
> can store the resultant file (in Xy 4, of course, stored files have
> that
> dratted LOG code at the end, so they won't work as batch files, which
> is
> what I want).
> Patricia
>
>