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
 

 

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: 7913
Location: Bellevue, IA

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. Get a job submitted itself every time... arunsoods JCL & VSAM 3 Tue Nov 22, 2016 4:05 pm
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm


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