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
 

 

Date-timestamp Issue EZACFSM1 or DFSORT utility

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Vishwamurthy

New User


Joined: 11 Mar 2008
Posts: 57
Location: India

PostPosted: Tue Dec 11, 2012 6:23 pm    Post subject: Date-timestamp Issue EZACFSM1 or DFSORT utility
Reply with quote

Hi,
I wrote a JCL to append date to a filename to transmit it to a vendor server. The mainframe is in EST (US) timezone.
I used the "&yr2.&mon.&day..txt" in EZACFSM1 and it gives me the perfect numbers, but the other day I got called saying that instead of placing it with the name YYMMDD, it does a YYMM(DD+1) when placed after 7PM. How can this happen? Both we and our vendor are on EST, then where did the GMT came in from?
Would you advise that I use DATENS=(YMD) in SORT? will this utility pick up the date from the system (EST)? or use GMT?

Whenever the file is transmitted after 7PM, this problem has been encountered.

I also found this topic interesting, but what about handling Daylight Savings issue there? How do we go about that, if at all required?
http://www.***READ FORUM RULES***.com/helpboards/viewtopic.php?t=11662&sid=f66e3725b2742f45cd4683b0d911a22f

Any directions would really help fix my confused state of mind..

Thanks in advance
Vishwamurthy
Back to top
View user's profile Send private message

Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1746
Location: Bloomington, IL

PostPosted: Tue Dec 11, 2012 6:43 pm    Post subject: Re: Date-timestamp Issue EZACFSM1 or DFSORT utility
Reply with quote

Vishwamurthy wrote:
Hi,
I used the "&yr2.&mon.&day..txt" in EZACFSM1 and it gives me the perfect numbers, but the other day I got called saying that instead of placing it with the name YYMMDD, it does a YYMM(DD+1) when placed after 7PM. How can this happen? Both we and our vendor are on EST, then where did the GMT came in from?

It comes from your using UTC(=GMT, more or less) symbols. Prefix them with "L" (e.g., &LYR2) for local time.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7936
Location: Bellevue, IA

PostPosted: Tue Dec 11, 2012 6:50 pm    Post subject:
Reply with quote

EZACFSM1 is provided as part of TCP/IP and references Unix System Services (USS). Depending upon how your USS is set up, it could easily be using UTC instead of your local time zone. You may be able to override this by adding a .PROFILE (note the period, which is NOT optional) to your OMVS home directory -- but then again, this may not change anything.

Your best bet would be to consult your site support group for assistance.
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
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts TAPE VERIFY utility?? MrExtraordinare JCL & VSAM 3 Fri Dec 09, 2016 10:57 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts DFHRESPONSE returns issue divated CICS 3 Wed Nov 02, 2016 6:32 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm


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