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
 
PKZIP Query: How to Give Date and Time in filename

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
raj_mainframe08

New User


Joined: 11 Sep 2007
Posts: 65
Location: Gurgaon

PostPosted: Sun Mar 29, 2015 11:05 pm    Post subject: PKZIP Query: How to Give Date and Time in filename
Reply with quote

I am using following command while zipping the file for file name.

Code:

-INDD(INFILE)                     
-ARCHOUTDD(OUTFILE)               
-METHOD(MAXIMUM)                 
-NIA(*.*,MPLPRI_&CDATE.CSV)     


For the &CDATE, I am getting message variables not found in spool. Please tell me the syntax for getting the Date and if there is one for Time as well while zipping the file
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Mon Mar 30, 2015 12:17 am    Post subject:
Reply with quote

If your site has a license for PKZIP, then you have access to the manuals -- via hardcopy, or internal web site, or from the vendor. Since the vendor manuals are not publically available, the only responses you will get on this forum (if any) will be from someone whose site has also licensed the product. There may not be many such people.

You would be MUCH better off going to the vendor for support on this question.
Back to top
View user's profile Send private message
raj_mainframe08

New User


Joined: 11 Sep 2007
Posts: 65
Location: Gurgaon

PostPosted: Mon Mar 30, 2015 7:11 pm    Post subject:
Reply with quote

Thanks. I did got the manuals from Administrator and searched them. Below are the details

Code:

• Local Date/Time Formats: Local date and time can be used as substitution. The following variables are available:
Date Formats:
o &YYYYMMDD (Local Gregorian date with four digit year)
o &YYMMDD (Local Gregorian date with two digit year)
o &YYYYDDD (Local Julian date with four digit year)
o &YYDDD (Local Julian date with two digit year)
o &YYMM (Local Year and Month)
o &YYYY (Four digit year)
o &YY (Two digit year)
o &MM (Two digit month)
o &DD (Two digit day)
Time Formats:
o &HHMNSS (Two digit - Hours minutes and seconds)
o &HHMN (Two digit – Hours and minutes)
o &HH (Two digit hour)
o &MN (Two digit minute)
o &SS (Two digit second)
Example:
-ARCHIVE DSN(MY.D&YYDDD..T&HHMN..BACKUP.ZIP)
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 -> All Other Mainframe Topics 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 HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 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

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