View previous topic :: View next topic
|
Author |
Message |
smilingashutosh
New User
Joined: 08 Jun 2006 Posts: 22
|
|
|
|
Hi all,
I m making an ispf macro which i will run on a particular member of a pds,
in the same macro, i want is to create a PS like
USERID.MEMNAME.DATE.TIME using rexx.can anybody suggest how to do it,code snippet are most welcome where member name is the member on which macro will run.
Thanks |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
You would use a TSO ALLOCATE command, where "memname" is the current member name:
Code: |
/* REXX */
"ISREDIT MACRO"
....
PARSE VAR ZDATE mm "/" dd "/" yy .
PARSE VAR ZTIME hr ":" min .
"ALLOC DA('"ZUSER"."memname".D"mm""dd""yy".T"hr""min"') NEW CATALOG REUSE RECFM(F B) LRECL(80) BLKSIZE(0) ..."
|
|
|
Back to top |
|
|
smilingashutosh
New User
Joined: 08 Jun 2006 Posts: 22
|
|
|
|
how to get system date system time in rexx as in clist we use &sysdate &systime.... |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
The DATE() and TIME() functions, as well as the ISPF variables. |
|
Back to top |
|
|
|