And just in case someone sees the SWAP command in a program, that statement
has the same effect on data as the CHANGE command, with a really different
format:

BUBBA = 'AS MUCH WOOD AS A WOOD CHUCK WOULD CHUCK IF A WOOD CHUCK DID CHUCK
WOOD'
*SWAP 'WOOD' WITH 'CHUCK' IN BUBBA
is the same as
BUBBA = CHANGE(BUBBA,'WOOD','CHUCK')
PRINT BUBBA

AS MUCH CHUCK AS A CHUCK WOOD WOULD WOOD IF A CHUCK WOOD DID WOOD CHUCK
:-)

The swap command came first, and someone along the way decided that it was
not in the same format of most of the other commands (starting with
'variable=' instead of the variable at the end) and so they added CHANGE.
For what it's worth.....(nothing?)

I've spent the day summarizing the VICS bill of lading format for a client
in 'understandable' language, which is akin to trying to explain the theory
of relativity using only five words, three letters each or less!  I needed a
break !!!!!!!

        *=aee=*

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Glenn Herbert
Sent: Wednesday, June 09, 2004 11:08 AM
To: [EMAIL PROTECTED]
Subject: RE: [U2] Convert Statement Not Working


Nor does it like the program name "R".

This, obviously, is because the "C" and "R" are options to VLIST.

C: converts FMT,LEN,FOLD opcodes to DP ones, i.e. FMT becomes FMTDP, LEN
becomes LENDP, etc.  Warning: This option UPDATES OBJECT CODE when used!!

R: print reference numbers instead of symbols

At 10:50 AM 6/9/2004, you wrote:
>This one ought to go into the FAQ
>
> >The following CONVERT statement does work,
> >
> > CONVERT "&" TO "&" IN LINE
> >
> > Does anyone know what's happening here?
>
>
>Well, I'm still proud of my little example when the question was raised
>in April:
>
>    CDS.BP C
>    01 X = 'How much wood would a woodchuck chuck, if a woodchuck could
>chuck wood?'
>    02 CRT X
>    03 CRT CONVERT( 'woodchuck', 'groundhog', X )
>    04 CRT CHANGE( CHANGE( X, 'wood', 'ground' ), 'chuck', 'hog' )
>
>    >RUN CDS.BP C
>    How much wood would a woodchuck chuck, if a woodchuck could chuck
>wood?
>    Hrg mhnd grru grhlu a grrundhng ndhng, if a grrundhng nrhlu ndhng
>grru?
>    How much ground would a groundhog hog, if a groundhog could hog
>ground?
>
>
>Dang, I'm clever!
>Hog^h^h^hChuck Stevenson
>
>
>P.S. Did you know that VLIST won't tolerate a program named "C"?
>
>    >VLIST CDS.BP C
>    "BP" is not a file name.
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to