HP3000-L Archives

July 1998, Week 5

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:
"Schick, John" <[log in to unmask]>
Reply To:
Schick, John
Date:
Fri, 31 Jul 1998 13:27:27 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (18 lines)
Paul Christidis asks in part about FUNCTION CURRENT-DATE:

<snip>
>My test seem to indicate that the function 'limits' the size of the
returned string to the size of the receiving field.
>Does this concur with the findings of anyone else on this list?
</snip>

Yes, this concurs with my findings.  FUNCTION CURRENT-DATE fills in its
own temporary 21-byte area.  Then the MOVE statement that assigns the
function value to your variable in working-storage works just like any
other Cobol MOVE statement.  If the receiving field is smaller than 21
bytes the excess is truncated.

John Schick
Sr. Technical Development Advisor
HBOC/Amisys

ATOM RSS1 RSS2