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

PKZIP Query: How to Give Date and Time in filename


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Mar 30, 2015 12:17 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
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
No new posts C Compile time time stamps Java & MQSeries 10
Search our Forums:

Back to Top