Which brings up a sore point. I don't like the little labels /| p1: pick ...' 
and I don't like paging up and down to see the different paths through my code. 
I've always wished we had something like structured programming. I use 'if' 
because that helps. WHEN might be nice, too. What I would really like to see is

$IF selection_stage
$THEN stages
$ELSE stages
$ENDIF

(I am using '$IF' just because 'if' is already in use.)

Melinda objected to that because it looked like procedural programming. But it 
really is not, it is just alternate streams. You could instead have:

$SELECT selection_stage
$STREAM.0 stages
$STREAM.1 stages
$STREAM.2 stages
$ENDSELECT

This is clearly not procedural.

The other thing I would like to have is an 'or' syntax:

$IF selection_stage $OR selection_stage
$THEN stages
$ELSE stages
$ENDIF

I could write a preprocessor and issue the 'PIPE' under the covers. The problem 
with a preprocessor is that any error messages I get would not match my input. 
As Melinda said "I want to fix it in the language it broke in". (Shouldn't that 
be "I want to fix it in the language I wrote it in"?)

-----Original Message-----
From: CMSTSO Pipelines Discussion List [mailto:[email protected]] On 
Behalf Of Frank M. Ramaekers
Sent: Thursday, September 15, 2011 8:04 AM
To: [email protected]
Subject: [CMS-PIPELINES] Condition stage execution...

Is there a stage like:



WHEN (condition) (stage)

  Like

WHEN W1 == /replace me/ SPEC /with me/ 1        (much like the PICK
stage)

 -or-

WHEN W1 == /replace me/ LITERAL with me



Or to insert a header (for instance)

WHEN W1 == /unique data/ SPEC /Header for section/ 1 WRITE 1-*





What I'm looking for is a stage that wouldn't require the need to use a
2nd stream and to be fanned back in.



 Frank M. Ramaekers Jr.





Systems Programmer

MCP, MCP+I, MCSE & RHCE



American Income Life Insurance Co.

Phone: (254)761-6649



1200 Wooded Acres Dr.

Fax: (254)741-5777



Waco, Texas  76701










_____________________________________________________

This message contains information which is privileged and confidential and is 
solely for the use of the

intended recipient. If you are not the intended recipient, be aware that any 
review, disclosure,

copying, distribution, or use of the contents of this message is strictly 
prohibited. If you have

received this in error, please destroy it immediately and notify us at 
[email protected].

----------------------------------------------------------------------
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited.
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law.
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses.

References to "Sender" are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link:
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.

Reply via email to