IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

create a ps with userid ,member, date and time parameter


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
smilingashutosh

New User


Joined: 08 Jun 2006
Posts: 22

PostPosted: Sun Oct 08, 2006 4:51 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sun Oct 08, 2006 10:19 pm
Reply with quote

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
View user's profile Send private message
smilingashutosh

New User


Joined: 08 Jun 2006
Posts: 22

PostPosted: Mon Oct 09, 2006 11:36 am
Reply with quote

how to get system date system time in rexx as in clist we use &sysdate &systime....
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Oct 09, 2006 11:58 am
Reply with quote

The DATE() and TIME() functions, as well as the ISPF variables.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts Need to convert date format DFSORT/ICETOOL 20
Search our Forums:

Back to Top