* easy DCL question (?)
@ 1999-08-17 4:00 Kevin Lynn
1999-08-18 4:00 ` Arlen Williams
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Kevin Lynn @ 1999-08-17 4:00 UTC (permalink / raw)
Hey, this newbie wants to know how to embed double quotes within a DCL
string. That is, I want something like:
flags = " flags are "flag1 flag2" "
which is not legal. The output i'm looking for is that
'flags' --> "flag1 flag2"
If I dereference flags I'd like to get back a quoted string.
Any help appreciated!
klynn@intran.xerox.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: easy DCL question (?)
1999-08-17 4:00 easy DCL question (?) Kevin Lynn
1999-08-18 4:00 ` Arlen Williams
@ 1999-08-18 4:00 ` sol gongola
1999-08-18 4:00 ` Martin Vorlaender
1999-08-18 4:00 ` Joseph Huber
3 siblings, 0 replies; 5+ messages in thread
From: sol gongola @ 1999-08-18 4:00 UTC (permalink / raw)
$ flags := " flags are ""flag1 flag2"" "
Kevin Lynn wrote:
>
> Hey, this newbie wants to know how to embed double quotes within a DCL
> string. That is, I want something like:
>
> flags = " flags are "flag1 flag2" "
>
> which is not legal. The output i'm looking for is that
> 'flags' --> "flag1 flag2"
>
> If I dereference flags I'd like to get back a quoted string.
>
> Any help appreciated!
>
> klynn@intran.xerox.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: easy DCL question (?)
1999-08-17 4:00 easy DCL question (?) Kevin Lynn
1999-08-18 4:00 ` Arlen Williams
1999-08-18 4:00 ` sol gongola
@ 1999-08-18 4:00 ` Martin Vorlaender
1999-08-18 4:00 ` Joseph Huber
3 siblings, 0 replies; 5+ messages in thread
From: Martin Vorlaender @ 1999-08-18 4:00 UTC (permalink / raw)
Kevin Lynn (Kevin.J.Lynn@usa.xerox.com) wrote:
: Hey, this newbie wants to know how to embed double quotes within a DCL
: string. That is, I want something like:
:
: flags = " flags are "flag1 flag2" "
:
: which is not legal. The output i'm looking for is that
: 'flags' --> "flag1 flag2"
:
: If I dereference flags I'd like to get back a quoted string.
Just double them:
flags = " flags are ""flag1 flag2"" "
cu,
Martin
--
| Martin Vorlaender | VMS & WNT programmer
VMS is today what | work: mv@pdv-systeme.de
Microsoft wants | http://www.pdv-systeme.de/users/martinv/
Windows NT 8.0 to be! | home: martin@radiogaga.harz.de
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: easy DCL question (?)
1999-08-17 4:00 easy DCL question (?) Kevin Lynn
` (2 preceding siblings ...)
1999-08-18 4:00 ` Martin Vorlaender
@ 1999-08-18 4:00 ` Joseph Huber
3 siblings, 0 replies; 5+ messages in thread
From: Joseph Huber @ 1999-08-18 4:00 UTC (permalink / raw)
In Article <7pcqhq$ad1$1@news.wrc.xerox.com>
"Kevin Lynn" <Kevin.J.Lynn@usa.xerox.com> writes:
>Hey, this newbie wants to know how to embed double quotes within a DCL
>string. That is, I want something like:
>flags = " flags are "flag1 flag2" "
>which is not legal. The output i'm looking for is that
>'flags' --> "flag1 flag2"
>If I dereference flags I'd like to get back a quoted string.
>
Quote the quotes, example:
$ x = """string"""
$ write sys$output x
--
Joseph "Sepp" Huber, Max-Planck-Institut Physik,Muenchen, Tel. +49 89 32354.344
huber@mppmu.mpg.de URL http://wwwvms.mppmu.mpg.de/~huber Fax. +49 89 3226704
At Cern (Atlas) Tel. +41 22 767-9879/-6820
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: easy DCL question (?)
1999-08-17 4:00 easy DCL question (?) Kevin Lynn
@ 1999-08-18 4:00 ` Arlen Williams
1999-08-18 4:00 ` sol gongola
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Arlen Williams @ 1999-08-18 4:00 UTC (permalink / raw)
Kevin Lynn wrote:
>
> Hey, this newbie wants to know how to embed double quotes within a DCL
> string. That is, I want something like:
>
> flags = " flags are "flag1 flag2" "
>
> which is not legal. The output i'm looking for is that
> 'flags' --> "flag1 flag2"
>
> If I dereference flags I'd like to get back a quoted string.
>
> Any help appreciated!
>
> klynn@intran.xerox.com
Others have responded with the correct answer, but in the future the
comp.os.vms newsgroup would be more appropriate for DCL questions.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1999-08-18 4:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-08-17 4:00 easy DCL question (?) Kevin Lynn
1999-08-18 4:00 ` Arlen Williams
1999-08-18 4:00 ` sol gongola
1999-08-18 4:00 ` Martin Vorlaender
1999-08-18 4:00 ` Joseph Huber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox