* Pretty stupid request regarding Y2K and PDP 11/23
@ 1998-02-26 5:00 Dave Brettell
1998-02-27 5:00 ` Tim Shoppa
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Dave Brettell @ 1998-02-26 5:00 UTC (permalink / raw)
An old customer of mine has a PDP 11/23 running RSTS/E (god knows what
version).
They use a retail system written in un-compiled BASIC (both 2 and 4 word
versions - remember that back in the 70s ? - talk about LEGACY).
The code is dodgy at best - two digit year fields and dates are critical
(especially those before that magic year - how many seconds since 197
what not ?) ;-)
I changed the date on the PDP to the last day of December 1999 at 23:59
and watched it roll. The best I can describe the result is watching a
random date generator at work (tip: - use your old PDP systems to
generate lottery numbers ).
My question is......
Are there any conversion routines for BASIC (2 or 4 word) to say C or
COBOL or whatever that will run on a Y2K compliant platform (any Y2K
complient VAX systems about ?).
The system they run is massive - probrably about 100-200 separate
programs, and although I dont mind doing a re-write I dont think they
could afford the bill.
Any help would be well appreciated.
Cheers in advance.
Dave.
--------------------------------------------------
-- SC. Dave Brettell --
-- Internet dave@dbslbox.demon.co.uk --
-- WWW www.dbslbox.demon.co.uk --
--------------------------------------------------
All views expressed are mine !
Dinosaurs were thin at one end, much much thicker
in the middle, and thin again at the other end !
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Pretty stupid request regarding Y2K and PDP 11/23
1998-02-26 5:00 Pretty stupid request regarding Y2K and PDP 11/23 Dave Brettell
1998-02-27 5:00 ` Tim Shoppa
@ 1998-02-27 5:00 ` Joel Gallun
1998-02-27 5:00 ` John Wilson
1998-03-01 5:00 ` Randy Park
2 siblings, 1 reply; 8+ messages in thread
From: Joel Gallun @ 1998-02-27 5:00 UTC (permalink / raw)
To: Dave Brettell
Ah RSTS/E and 11/23s -- those were the good old days...
well, maybe not.
There's a product called vbix that is basically Visual Basic for
unix. That old basic-plus code might port to vbix without too much
pain since M$ basic was a pretty blatent rip-off of basic-plus. I
think that there is even a version of vbix for Linux. Linux and a
cheap pentium ought to replace that 11/23 with plenty of capacity to
spare. They can even continue to use their old vt220s or whatever they
have. Just drop a multiport serial card into the Linux box.
--
Joel Gallun joel@tux.org
Open system and Internet consulting Washington, D.C.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Pretty stupid request regarding Y2K and PDP 11/23
1998-02-27 5:00 ` Joel Gallun
@ 1998-02-27 5:00 ` John Wilson
0 siblings, 0 replies; 8+ messages in thread
From: John Wilson @ 1998-02-27 5:00 UTC (permalink / raw)
In article <xofg1l5hvw3.fsf@gwyn.tux.org>,
Joel Gallun <joel@gwyn.tux.org> wrote:
>That old basic-plus code might port to vbix without too much
>pain since M$ basic was a pretty blatent rip-off of basic-plus.
That's what M$ would have you believe (they claimed this back in MBASIC-80
days) but M$'s BASICs are at best a faint shadow of BASIC-PLUS. No SYS(),
no CVTxx, no statement modifiers, nothing like EXTEND mode until later when
they Pascalified it (so the newer M$ BASICs aren't really BASIC at all),
file operations are different. It would be a very involved port.
John Wilson
D Bit
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Pretty stupid request regarding Y2K and PDP 11/23
1998-02-26 5:00 Pretty stupid request regarding Y2K and PDP 11/23 Dave Brettell
@ 1998-02-27 5:00 ` Tim Shoppa
1998-02-27 5:00 ` Terry Kennedy
1998-02-28 5:00 ` John A Santos
1998-02-27 5:00 ` Joel Gallun
1998-03-01 5:00 ` Randy Park
2 siblings, 2 replies; 8+ messages in thread
From: Tim Shoppa @ 1998-02-27 5:00 UTC (permalink / raw)
In article <NmHHjAAqgf90Ewzx@dbslbox.demon.co.uk>,
Dave Brettell <Dave@dbslbox.demon.co.uk> wrote:
>An old customer of mine has a PDP 11/23 running RSTS/E (god knows what
>version).
>They use a retail system written in un-compiled BASIC (both 2 and 4 word
>versions - remember that back in the 70s ? - talk about LEGACY).
>The code is dodgy at best - two digit year fields and dates are critical
>(especially those before that magic year - how many seconds since 197
>what not ?) ;-)
>I changed the date on the PDP to the last day of December 1999 at 23:59
>and watched it roll. The best I can describe the result is watching a
>random date generator at work (tip: - use your old PDP systems to
>generate lottery numbers ).
Well, if you come over to the PDP-11 specific newsgroups -
including comp.os.rsts, vmsnet.pdp-11, and alt.sys.pdp11 - you'll
find a fair number of people with -11's that are going to continue
running well into the 21st century. The RT-11 and RSX-11M+ OS's
are now fully Year 2000 compliant, but I don't know about RSTS/E.
Of course, in an application such as yours where there's a huge amount
of date-dependent stuff in the application software, the OS compliance
is the easy end of the problem.
>Are there any conversion routines for BASIC (2 or 4 word) to say C or
>COBOL or whatever that will run on a Y2K compliant platform (any Y2K
>complient VAX systems about ?).
Open your eyes! PDP-11's and VAXen are Y2K compliant platforms, with
the right software!
One very important question is whether the BASIC interpreter used
by your clients is available in a Y2K compliant version. Which
version of RSTS/E BASIC are you using? (Or BASICs, as the case may be.)
Tim. (shoppa@triumf.ca)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Pretty stupid request regarding Y2K and PDP 11/23
1998-02-27 5:00 ` Tim Shoppa
@ 1998-02-27 5:00 ` Terry Kennedy
1998-02-28 5:00 ` John A Santos
1 sibling, 0 replies; 8+ messages in thread
From: Terry Kennedy @ 1998-02-27 5:00 UTC (permalink / raw)
In alt.sys.pdp11 Tim Shoppa <shoppa@alph02.triumf.ca> wrote:
> running well into the 21st century. The RT-11 and RSX-11M+ OS's
> are now fully Year 2000 compliant, but I don't know about RSTS/E.
RSTS/E 10.1 is supposed to be Y2K-compliant.
> One very important question is whether the BASIC interpreter used
> by your clients is available in a Y2K compliant version. Which
> version of RSTS/E BASIC are you using? (Or BASICs, as the case may be.)
If the dates are stored in binary format he's probably better off, since
the latest Basic-Plus interpreter (and BP2 compiler) know how to handle
binary dates > 1999. If the dates are stored in ASCII format, the appli-
cations will likely need some changes.
Terry Kennedy Operations Manager, Academic Computing
terry@spcvxa.spc.edu St. Peter's College, Jersey City, NJ USA
+1 201 915 9381 (voice) +1 201 435-3662 (FAX)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Pretty stupid request regarding Y2K and PDP 11/23
1998-02-27 5:00 ` Tim Shoppa
1998-02-27 5:00 ` Terry Kennedy
@ 1998-02-28 5:00 ` John A Santos
1998-02-28 5:00 ` Stuart Brook
1 sibling, 1 reply; 8+ messages in thread
From: John A Santos @ 1998-02-28 5:00 UTC (permalink / raw)
In article <6d6q7t$eh4$1@nntp.ucs.ubc.ca>, shoppa@alph02.triumf.ca
says...
> In article <NmHHjAAqgf90Ewzx@dbslbox.demon.co.uk>,
> Dave Brettell <Dave@dbslbox.demon.co.uk> wrote:
> >An old customer of mine has a PDP 11/23 running RSTS/E (god knows what
> >version).
> >They use a retail system written in un-compiled BASIC (both 2 and 4 word
> >versions - remember that back in the 70s ? - talk about LEGACY).
> >The code is dodgy at best - two digit year fields and dates are critical
> >(especially those before that magic year - how many seconds since 197
> >what not ?) ;-)
> >I changed the date on the PDP to the last day of December 1999 at 23:59
> >and watched it roll. The best I can describe the result is watching a
> >random date generator at work (tip: - use your old PDP systems to
> >generate lottery numbers ).
>
RSTS/E (at least V10.1, but I suspect this goes back forever) won't
roll the date over correctly at end-of-year for more than one year
after the boot date. To test Y2K stuff, you need to reboot and set the
date at boot time to 01-Jan-1999 or later.
I have a theory as to why this is the case, but haven't been able to
test it because or PDP-11 died a few months ago, and I haven't had time
to try to fix it. (It seems to be getting a power-fail trap between a
few milliseconds and maybe a second or two after starting the boot strap.
I think there's a bad voltage regulator, but haven't been able to isolate
it. It is an 11/73-Able Microverter in an 11/40 CPU cabinet.)
RSTS/E internal date format is an unsigned word whose value is
(YYYY-1970)*1000+DOY, where YYYY is the year and DOY is the day
of the year. For example, 31-DEC-1997 is 27365, and 01-Jan-1998
is 28001.
My theory is there is a word, computed at boot-time, containing the
RSTS/E format date of the last day of the year (or maybe the last day+1,
i.e. "32-DEC" or 27366 for systems booted in 1997), and at midnight on
31-DEC, when the clock service interrupt increments the date word, it
compares the date to this word, and if they are the same, it resets the
date to 01-JAN-YY+1. This method would save a fair amount of code in the
clock service to check every night at midnight if this is 31-DEC
(including handling leap year). The cost of this method is that end-of-
year won't work right if the system is up for more than a year (the
longest uptime I've ever seen on a RSTS/E system was about 9 months), or
if you set the date to after 31-DEC of the boot year (or before 01-JAN of
the boot year.) Apparently the SET-TIME sys() call doesn't update this
word.
If this theory is correct, it should be possible to POKE the monitor so
you could do testing without rebooting. (Exercise left for the reader.)
We did fairly extensive Y2K testing with RSTS/E V10.1. There seemed to
be no problems at all before 31-Dec-2002, while the date value is
positive.
There were no real problems after this date with system code, and most
user programs were also fine as long as they treated DATE values as
unsigned words. This means you are OK until 31-DEC-2035.
Of course, you always need to be careful of 2-digit string dates, storing
the year in a byte, and input and output conversions.
> Well, if you come over to the PDP-11 specific newsgroups -
> including comp.os.rsts, vmsnet.pdp-11, and alt.sys.pdp11 - you'll
> find a fair number of people with -11's that are going to continue
> running well into the 21st century. The RT-11 and RSX-11M+ OS's
> are now fully Year 2000 compliant, but I don't know about RSTS/E.
>
As Terry said in another response, V10.1 is claimed by DEC to be Y2K
compliant.
> Of course, in an application such as yours where there's a huge amount
> of date-dependent stuff in the application software, the OS compliance
> is the easy end of the problem.
>
As I said...
> >Are there any conversion routines for BASIC (2 or 4 word) to say C or
> >COBOL or whatever that will run on a Y2K compliant platform (any Y2K
> >complient VAX systems about ?).
>
2 or 4 word math package is really irrelevant to this.
However, package capable of converting BASIC to any other language is
going to be able to understand the meaning of the source code. Any
Y2K bugs in the BASIC source will be faithfully replicated in the C or
COBOL or whatever. You can't get out of it that easily!
If you want to go to a platform that won't drop dead in 2036, though,
VMS on either a VAX or Alpha will present no problems for another 8,000
years. It is easy to convert most BASIC-PLUS source code (except for
SYS() calls) to either VAX BASIC or DEC BASIC (which are extremely
compatible with each other.) You may have to do some bulk formatting
conversions first though: 1) run the sources through TECO with the
/8 (or any other number you like) to convert <LF>-delimited continuation
lines to &<CR> delimited lines, and 2) convert ":" statement separators
to "\" separators. You will have to to some work on I/O (OPEN files
appropriately as either text files or VIRTUAL files, or go to full-blown
RMS record management if you need record locking, etc.) BASIC-PLUS-2
is even easier to convert; the delimiters are probably already okay, and
it probably already uses RMS.
Of course, migrating an entire system is much more work than a single
program. One program can take anywhere from a few minutes to several
days; an entire system can take months to years.
> Open your eyes! PDP-11's and VAXen are Y2K compliant platforms, with
> the right software!
>
> One very important question is whether the BASIC interpreter used
> by your clients is available in a Y2K compliant version. Which
> version of RSTS/E BASIC are you using? (Or BASICs, as the case may be.)
>
> Tim. (shoppa@triumf.ca)
>
John Santos
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Pretty stupid request regarding Y2K and PDP 11/23
1998-02-28 5:00 ` John A Santos
@ 1998-02-28 5:00 ` Stuart Brook
0 siblings, 0 replies; 8+ messages in thread
From: Stuart Brook @ 1998-02-28 5:00 UTC (permalink / raw)
John A Santos wrote:
>
> RSTS/E (at least V10.1, but I suspect this goes back forever) won't
> roll the date over correctly at end-of-year for more than one year
> after the boot date. To test Y2K stuff, you need to reboot and set the
> date at boot time to 01-Jan-1999 or later.
>
> I have a theory as to why this is the case, but haven't been able to
> ...
>
> RSTS/E internal date format is an unsigned word whose value is
> (YYYY-1970)*1000+DOY, where YYYY is the year and DOY is the day
> of the year. For example, 31-DEC-1997 is 27365, and 01-Jan-1998
> is 28001.
>
> My theory is there is a word, computed at boot-time, containing the
> RSTS/E format date of the last day of the year (or maybe the last day+1,
> i.e. "32-DEC" or 27366 for systems booted in 1997), and at midnight on
> 31-DEC, when the clock service interrupt increments the date word, it
> compares the date to this word, and if they are the same, it resets the
> date to 01-JAN-YY+1. This method would save a fair amount of code in the
> clock service to check every night at midnight if this is 31-DEC
> (including handling leap year). The cost of this method is that end-of-
> year won't work right if the system is up for more than a year (the
> longest uptime I've ever seen on a RSTS/E system was about 9 months), or
> if you set the date to after 31-DEC of the boot year (or before 01-JAN of
> the boot year.) Apparently the SET-TIME sys() call doesn't update this
> word.
John, you are as close as Damn It! is to swearing!
> There were no real problems after this date with system code, and most
> user programs were also fine as long as they treated DATE values as
> unsigned words. This means you are OK until 31-DEC-2035.
That's correct! I know RSTS dies before the other 2 major PDP o/s but I
could never remember the magic date. Given that most of us who've
worked with -11's will be well into retirement by that time, our jump up
and down worry is not too evident ... I hope RSTS users in 2035 will
remember that!
Stuart
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Pretty stupid request regarding Y2K and PDP 11/23
1998-02-26 5:00 Pretty stupid request regarding Y2K and PDP 11/23 Dave Brettell
1998-02-27 5:00 ` Tim Shoppa
1998-02-27 5:00 ` Joel Gallun
@ 1998-03-01 5:00 ` Randy Park
2 siblings, 0 replies; 8+ messages in thread
From: Randy Park @ 1998-03-01 5:00 UTC (permalink / raw)
Dave Brettell <Dave@dbslbox.demon.co.uk> wrote in article <NmHHjAAqgf90Ewzx@dbslbox.demon.co.uk>...
> An old customer of mine has a PDP 11/23 running RSTS/E (god knows what
> version).
> They use a retail system written in un-compiled BASIC (both 2 and 4 word
> versions - remember that back in the 70s ? - talk about LEGACY).
> The code is dodgy at best - two digit year fields and dates are critical
> (especially those before that magic year - how many seconds since 197
> what not ?) ;-)
> I changed the date on the PDP to the last day of December 1999 at 23:59
> and watched it roll. The best I can describe the result is watching a
> random date generator at work (tip: - use your old PDP systems to
> generate lottery numbers ).
>
> My question is......
>
> Are there any conversion routines for BASIC (2 or 4 word) to say C or
> COBOL or whatever that will run on a Y2K compliant platform (any Y2K
> complient VAX systems about ?).
>
> The system they run is massive - probrably about 100-200 separate
> programs, and although I dont mind doing a re-write I dont think they
> could afford the bill.
>
> Any help would be well appreciated.
>
> Cheers in advance.
>
> Dave.
As others have indicated, get to the current version of RSTS/E if possible,
and don't set the system clock forward more than a year in advance.
To answer your question about conversion of Basic-Plus to something else,
take a look at Sector 7 software. They can be found on the web.
Also, converting to Vax Basic or Dec Basic on Alpha is not that tough. I
did a lot of it a number of years ago.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~1998-03-01 5:00 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-02-26 5:00 Pretty stupid request regarding Y2K and PDP 11/23 Dave Brettell
1998-02-27 5:00 ` Tim Shoppa
1998-02-27 5:00 ` Terry Kennedy
1998-02-28 5:00 ` John A Santos
1998-02-28 5:00 ` Stuart Brook
1998-02-27 5:00 ` Joel Gallun
1998-02-27 5:00 ` John Wilson
1998-03-01 5:00 ` Randy Park
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox