MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

what is &DATE1

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
sharada
Beginner


Joined: 24 Aug 2005
Posts: 32
Topics: 14
Location: Hyderabad

PostPosted: Mon Sep 19, 2005 10:49 pm    Post subject: what is &DATE1 Reply with quote

Hi,

Previously I have posted a question as,
how to compare a date field with current
date in JCL SORT and I got reply to use
&DATE1. I have used it and its working
fantastic.

My question now is what is &DATE1 is it
a register having current date value, or
a function which returns current date.
Please explain,

I will be very thankful if any one of you can
provide a document for that.

Thanks,
Sharada.
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Tue Sep 20, 2005 12:43 am    Post subject: Reply with quote

Sharada,

&DATEx, &DATExC, &DATExP (x = 1, 2 & 3) are all date constants (symbolic constants) which reperesent current date in various formats (numeric, text & Packed Decimal).

Quote:

I will be very thankful if any one of you can
provide a document for that.


Sure, but first, I need to know what Sort product you use (Syncsort / DFSORT).

Thanks,
Phantom
Back to top
View user's profile Send private message
sharada
Beginner


Joined: 24 Aug 2005
Posts: 32
Topics: 14
Location: Hyderabad

PostPosted: Tue Sep 20, 2005 12:47 am    Post subject: Reply with quote

Hi Phantom,

I am using SYNCSORT
_________________
Regards,
Sharada.

Always perform your duty efficiently and without any selfish attachment to the results,
because by doing work without attachment one attains Supreme.
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Tue Sep 20, 2005 12:51 am    Post subject: Reply with quote

Sharada,

Syncsort manuals are copyrighted and are not available on the net for distribution. If your shop has a valid licence, talk to your Sys. Programmers to find the syncsort manual.

Thanks,
Phantom
Back to top
View user's profile Send private message
sharada
Beginner


Joined: 24 Aug 2005
Posts: 32
Topics: 14
Location: Hyderabad

PostPosted: Tue Sep 20, 2005 12:53 am    Post subject: Reply with quote

THANK YOU
_________________
Regards,
Sharada.

Always perform your duty efficiently and without any selfish attachment to the results,
because by doing work without attachment one attains Supreme.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Tue Sep 20, 2005 6:45 am    Post subject: Reply with quote

Sharada,

The following are the various formats of current date.

Code:

CURRENT-DATE     FORMAT                 
============     ====================   
&DATE1           C'YYYYMMDD'             
&DATE1(C)        C'YYYYCMMCDD'           
&DATE1P          +YYYYMMDD               
&DATE2           C'YYYYMM'               
&DATE2(C)        C'YYYYCMM'             
&DATE2P          +YYYYMM                 
&DATE3           C'YYYYDDD'             
&DATE3(C)        C'YYYYCDDD'             
&DATE3P          +YYYYDDD               
&DATE4           C'YYYY-MM-DD-HH.MM.SS' 
Y'DATE1'         Y'YYMMDD'               
Y'DATE2'         Y'YYMM'                 
Y'DATE3'         Y'YYDDD'               


&DATEx and &DATEx(c) represent the current date as a character string (C'string')

&DATExP represents the current date as a decimal number (+n)

However some of them are dependent on the version of sort you have.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group