HP3000-L Archives

March 1998, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
tom renz <[log in to unmask]>
Reply To:
Date:
Wed, 4 Mar 1998 17:54:22 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (44 lines)
Stephen,

I believe you are referring to the CURRENT-DATE Function available with
COBOL '85.  Here's an example of code:

$Control POST85    <<This must be included/added to your code>>
 Identification Division.
 Program-Id.   test.
 Data Division.
 Working-Storage Section.
 01  Current-Date-Buffer.
     05  Current-Date-string      Pic X(10) Value All '0'.
*    05  Other-fields             Pic X(20) Value Spaces.
* The other-fields field above has additional fields that available after
* using the CURRENT-DATE function.  Refer to the COBOL manual for more....
 Procedure Division.
 0-s section.
     Move Function CURRENT-DATE to Current-Date-Buffer.
     Display Current-Date-string.
     stop run.

This will return to you a Y2K compatible date for your working pleasure.  I
don't have the COBOL manual in front of me to give the exact order,
information availble and field sizes.  Hope this helps.

tom renz
COTC Computer Consulting
[log in to unmask]

------------------------------------------------------------------------------
On Tue, 3 Mar 1998 17:15:14 you wrote:
>
>From:    Johnson Stephen <[log in to unmask]>
>Subject: CURRENT DATE INTRINSIC FOR Y2K
>
>SOMEONE GOT AN EXAMPLE TO YEILD 19980303  FROM INTRINSIC CURRENT-DATE ?
>
>HOW TO I GET  (YYYYMMDD) ?
>
>THANKS
>
>P.S.  DO NOT NEED ANY PROPAGANDA FROM THE MINISTER   EH EH EH EH EH
>!#$&%$#

ATOM RSS1 RSS2