Always curious about compatibility issues, copied program and pasted into gedit on Fedora Linux, put a leading "#!/usr/bin/rexx" and tried to run with oorexx on linux. Only code issues found: (1)Not really a code issue, but had to to run through dos2unix to convert Windows CR LF end-of-line to unix LF end of line or don't even get past the unix shebang 1st line -- can't find program "rexx" with CR appended to name. (2)Only special characters allowed in variable names in oorexx are !, ?, and _, so "#DAYS" is not a valid variable name and produced an error message about unexpected "#". Find-replace-all "#DAYS" to "NR_DAYS"
That's all it took to get it to run. Would be nice if non-standard date format of yyyy.mmdd were documented in leading comments, but if you try enough possibilities it does eventually tell the expected format. First assuming mm/dd/yyyy, I got that my birthdate was greater than current date, which implies year must come first. After assuming ISO yyyy-mm-dd, it did get far enough to tell the date format expected. Sobering to find I'm over 27,000 days old. JC Ewing On 4/24/20 1:01 AM, CM Poncelet wrote: > I attach a Rexx program to calculate and display the biorhythm values > for a given date of birth and current or whatever other date. > > If 'management' complains that home workers are not putting enough > effort into their working-from-home time, they can run this thing and > send its output to 'management' just to prove that they are in perfect > working condition and that any slow-down in productivity must be due to > external factors which are wholly beyond their control <g>. > > Cheers, Chris Poncelet (retired sysprog) > > ... -- Joel C. Ewing ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
