Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: create a ps with userid ,member, date and time parameter
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

Moderator Team Head


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

PostPosted: Sun Oct 08, 2006 10:19 pm    Post subject: Re: create a ps with userid ,member, date and time parameter
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    Post subject:
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

Moderator Team Head


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

PostPosted: Mon Oct 09, 2006 11:58 am    Post subject: Re: create a ps with userid ,member, date and time parameter
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Paasing symbolic parameter to instrea... Anirudh Anand JCL & VSAM 1 Thu Jul 27, 2017 1:22 pm
No new posts JTS parameter Shashank Chaubey JCL & VSAM 2 Thu Jul 13, 2017 4:15 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us