Usage of THRESHOLD parameter in Easytrieve DATE MACROS

Ask/Clarify the questions on EASYTRIEVE

Moderators: DikDude, Moderator Group

Post Reply
User avatar
Kalicharan
Moderator
Posts: 31
Joined: Wed Feb 08, 2006 1:51 pm

Usage of THRESHOLD parameter in Easytrieve DATE MACROS

Post by Kalicharan » Wed Dec 13, 2006 1:11 pm

Importance of THRESHOLD parameter in DATECONV MACRO:

The DATECONV routine converts a date-in-one format to any other date format.

%DATECONV date1 format1 date2 format2 [THRESHOLD value]


[THRESHOLD value]

This optional parameter establishes the upper end of a 100-year range in the 20th and 21st centuries, used in converting YY to CCYY.

For example, if THRESHOLD if 50, the lower boundary is 1951 and the Upper boundary of the range is set to 2050.
When converting YY to CCYY, each year is assigned a two-position century, based on the range established by THRESHOLD.
The default value for THRESHOLD is 0. This causes all dates to have a range of 1901 through 2000.

For Example: when THRESHOLD is 50
If year is 52 then century is 19;
If year is 21 then century is 20.

Valid values for THRESHOLD are 0 through 99.

Purusothaman
Member
Posts: 4
Joined: Tue Nov 18, 2008 11:10 am
Location: Chennai, India
Contact:

Post by Purusothaman » Tue Nov 18, 2008 3:43 pm

Hi,

Can you please provide me a simple example for DATECONV?

Thanks in advance.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others