× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thanks Claus.  I saw that and figured out how people here could use it to
simplify some of their code - it's a great way to extract parts of a
date/time/timestamp value and format the result at the same time.  Still
haven't found an easy way to get the system timestamp into a COBOL program
though.  Finally I cheated and used RPG to return a timestamp into a COBOL
field defined as "FORMAT TIMESTAMP".  At that point the COBOL can use the
EXTRACT-DATE-TIME function (and the ADD/SUBTRACT duration, etc.) to
manipulate the timestamp any way they need.

THANKS and keep up the good work - it's REALLY appreciated,
Bruce

-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On
Behalf Of Claus Weiss
Sent: Wednesday, January 14, 2004 9:58 AM
To: Websphere Development Studio Client for iSeries
Subject: RE: [WDSCI-L] re: COBOL Question





I am by far no COBOL expert, but what our COBOL guys here suggested is
this:

In ILE COBOL,  use EXTRACT-DATE-TIME .

Hope this helps

Claus Weiss Visual AD tools, email: weiss@xxxxxxxxxx
Dept 522 IBM Canada Lab tie 969-3987 Phone(905)413-3987 FAX(905)413-4850
Greetings from Toronto
WDSc for iSeries homepage: ibm.com/software/awdtools/iseries
WDSc newsgroup: news://news.software.websphere.studio400     |   VARPG
newsgroup: news://news.software.ibm.com/ibm.software.varpg,

_______________________________________________
This is the Websphere Development Studio Client for iSeries  (WDSCI-L)
mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/wdsci-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.