Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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: 4650
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
This topic is locked: you cannot edit posts or make replies. 00D3003B - time outs in DB2 when invo... chavinash2004 DB2 2 Mon Oct 09, 2017 4:39 pm
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts Validate the Date girishb2 DFSORT/ICETOOL 9 Tue Sep 19, 2017 1:12 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us