Re: Selective record extraction/copy?
- From: "Richard B. Gilbert" <rgilbert88@xxxxxxxxxxx>
- Date: Thu, 23 Oct 2008 11:00:22 -0400
FrankS wrote:
On Oct 22, 10:20 pm, David J Dachtera <djesys...@xxxxxxxxxxxxxxxx>
wrote:
AFAIK, DCL does not support any structured programming constructs, only
labels and GOTOs.
Boy, this'll take us off topic.
Structured programming doesn't require WHILE, and doesn't forbid the
use of GOTO. At its roots, it just says that any programming solution
can be expressed using three constructs: sequential blocks of code,
conditional execution, and looping.
All three of those constructs can be implemented in DCL. Granted, it
doesn't have many of the higher level statements that make it easier
to see the structure, but it can all be done.
For example, the construct
WHILE (condition)
.
. <one or more other statements go here>
.
NEXT
can be expressed in DCL as
looptop:
IF (.not. condition) THEN GOTO loopend
.
. <one or more other statements go here>
.
GOTO looptop
loopend:
. <etcetera>
The SELECT (or CASE) statement is a shortcut for multiple IFs or IF/
ELSEIFs. And so on. You can express all of these so-called
structured constructs using just labels and GOTOs, and IFs.
So, go out there and start writing structured DCL. It can be done.
Well said!!
.
- References:
- Selective record extraction/copy?
- From: gerry77
- Re: Selective record extraction/copy?
- From: yyyc186
- Re: Selective record extraction/copy?
- From: Hein RMS van den Heuvel
- Re: Selective record extraction/copy?
- From: yyyc186
- Re: Selective record extraction/copy?
- From: David J Dachtera
- Re: Selective record extraction/copy?
- From: FrankS
- Selective record extraction/copy?
- Prev by Date: Re: PALCode problem
- Next by Date: Re: Who is left at VMS engineering ?
- Previous by thread: Re: Selective record extraction/copy?
- Next by thread: Re: Selective record extraction/copy?
- Index(es):
Relevant Pages
|