> -----Original Message----- > From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On > Behalf Of McKown, John > Sent: Monday, July 14, 2008 11:39 AM > To: [email protected] > Subject: Which is better? question about CGI program. > > This is likely more a philosophical question. <Snipped> > Altogether, omitting the error checking, this takes about 15 lines of > REXX code. > > However, I have alternate method. The REXX program uses BPXWUNIX to > run an "awk" program to do the search. The "awk" program is only 4 > lines long. The plus of this is that it is much shorter. The minuses > are that: (1) it uses BPXWUNIX to fork/exec an awk program; (2) it > uses "awk" which nobody else on my team is familiar with. > > So, should I go with the longer pure REXX program which is possibly > more understandable? Or should I go with the REXX/awk hybrid which is, > in some ways, simpler but has more overhead? > > This is likely going to be a low use program.
FWIW, I would stay with the awk solution. Of course, it could be that my being an active awk user in PC and *ix land for a decade and a half now may be coloring my opinion. On the gripping hand, sad but true, the young turks coming up behind you are far more likely to know and use awk than REXX. Far more radical solution: Code the whole thing in perl. Same comment about those coming up the ranks, and perl is widely used in the cgi/web world. Peter This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

