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:
Ron Burnett <[log in to unmask]>
Reply To:
Ron Burnett <[log in to unmask]>
Date:
Mon, 11 Sep 2000 15:21:10 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (34 lines)
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.

The reason you're getting the separating /'s is because your dictionary
specifies that character as the date separator and it gets used for
all occurrences of variables of the type 'date'.

If you need to preserve the variables 'date' type, maybe you can
use something like

> DEF NEW-BODATE DATE FORMAT YYMMDD noseparator = &
>   DATE(DAYS(BODATE) + 6) IF BODATE <> 0 ELSE 0


Now, shouldn't you have a century included at this late date in the
21st century?

Cheers,
Ron Burnett
[log in to unmask]

ATOM RSS1 RSS2