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.
Usage of THRESHOLD parameter in Easytrieve DATE MACROS
Moderators: DikDude, Moderator Group
- Kalicharan
- Moderator
- Posts: 31
- Joined: Wed Feb 08, 2006 1:51 pm
-
- Member
- Posts: 4
- Joined: Tue Nov 18, 2008 11:10 am
- Location: Chennai, India
- Contact:
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
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page