Hi,
Could you please let me know how the date will stored in the following variable
ws-date pic s9(07).
Will it be YYMMDD or will it be in Julian format YYYYDDD?
Please dont ask me to read manuals as I urgently need reply to this
Date format with PIC s9(07)
Moderators: dbzTHEdinosauer, Moderator Group
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
Probably not. . . You need to look in the code that places a date in the field to see how the date is arranged. You may need to back up to the code where the date is initially placed in the field.Could you please let me know how the date will stored in the following variable
FWIW - forums do not do "urgent". . .
Have a good one
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
Might be Julian (yyyyddd or 00yyddd), might be a 6-digit Gregorian (0yymmdd or 0mmddyy) or something "custom" (xmmddyy/xyymmdd) where x = some magic code for which century). Lots of places did thngs like this to get around changing field lengths for y2k. . .
If it was easily available in some manual, we would surely have told you to look there. This will probably be in no manual except one that originated in your organization describing how this date is stored. With a bit of luck all dates are stored in the same format - otherwise each will need to be researched.
Unfortunately, the entire answer is in code or documentation on your system.
I forgot to mention this before.Please dont ask me to read manuals as I urgently need reply to this
If it was easily available in some manual, we would surely have told you to look there. This will probably be in no manual except one that originated in your organization describing how this date is stored. With a bit of luck all dates are stored in the same format - otherwise each will need to be researched.
Unfortunately, the entire answer is in code or documentation on your system.
Have a good one
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