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: 4648
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: 4648
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 Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
No new posts CICS transaction slow response time vasanthz All Other Mainframe Topics 1 Thu Jan 19, 2017 1:31 am
No new posts DD DUMMY & CPU TIME Nileshkul Testing & Performance analysis 16 Mon Dec 19, 2016 11:35 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm


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