HP3000-L Archives

September 2000, Week 4

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:
Chuck Ryan <[log in to unmask]>
Reply To:
Chuck Ryan <[log in to unmask]>
Date:
Mon, 11 Sep 2000 17:11:09 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (42 lines)
> -----Original Message-----
> From: Ron Burnett [mailto:[log in to unmask]]
> Sent: Monday, September 11, 2000 3:22 PM
> To: [log in to unmask]
> Subject: Re: [HP3000-L] Quiz question
>
>
> At 16:00 11/09/2000 -0400, Jim Mc Coy wrote:
> >Does anyone know how to output this field to a subfile
> without slashes in
> the date? (YYMMDD instead of YY/MM/DD)
> >
> > DEF NEW-BODATE DATE FORMAT YYMMDD = &
> >   DATE(DAYS(BODATE) + 6) IF BODATE <> 0 ELSE 0
>
> A relatively simple question that even I can answer at this
> hour of the
> morning!
>
> Try
>
>                 define new-bodatex char * 6 = ascii(new-bodate)
>
> and then output the new-bodatex variable to your subfile.
>


Just a warning....

When using a define like this:

define new-bodatex char * 6 = ascii(new-bodate)

to convert a date to a string ALWAYS specify the number of positions for the
string as in :

define new-bodatex char * 6 = ascii(new-bodate,6)

or your date, which is stored in YYYYMMDD format, 00000101 will come out as
"101" because ascii converts all leading zeroes to spaces and left
justifies.

ATOM RSS1 RSS2