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: 8132
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
No new posts Can we limit length in concatenation ... balaji81_k DB2 4 Tue Aug 22, 2017 2:50 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts Need DB2 query to fetch previous row ! Chandan1993 DB2 10 Sat Jun 03, 2017 10:43 am
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts DSNACCOX (can it be run on 1 db/ts, t... SRICOBSAS DB2 5 Sat May 06, 2017 12:59 am


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