INFO-VAX Sun, 20 Jul 2008 Volume 2008 : Issue 402 Contents: Re: "Network tape drive" for VMS Re: c. 2008 Brian Schenkenberger. Re: Question about quoting inside a string Re: Question about quoting inside a string Re: Question about quoting inside a string Re: Question about quoting inside a string Re: Question about quoting inside a string Re: Question about quoting inside a string Re: Question about quoting inside a string ---------------------------------------------------------------------- Date: Sat, 19 Jul 2008 14:45:37 -0400 From: "Richard B. Gilbert" Subject: Re: "Network tape drive" for VMS Message-ID: Stephen Hoffman wrote: > VAXman- @SendSpamHere.ORG wrote: >> In article , Stephen Hoffman >> writes: >>> I'm surprised no one has suggested a tape library or a loader, and/or >>> a big rack of cheap/slow/capacious archival disks. >> Someone must still change the tapes in >> the shuttle of the loader if this is to be use for this solution. > > The old DLT loaders are far from the only options available here, and > may or may not be sufficient for the particular (and unstated capacity) > requirements here. Far larger DLT and Ultrium loaders and libraries are > available. Some of the garden variety HP MSLs offer upwards of 96 > terabytes, and various folks including HP and Sun has options that scale > up into the petabyte range. > > >> Also, >> what is to stop the person on the remote side from using a tape that has >> already been used? BACKUP has safeguards but they can also be defeated. > > And who in their right mind would allow a human at the BACKUP utility? And what is the typical system manager? I've never seen or heard of a four legged critter occupying that slot. OTOH, BACKUP should be run with minimal human intervention required. Somebody has to put the proper tapes in the drive and/or stacker but that's about it. A good DCL procedure and a good batch scheduler such as JAMS are also a big help. I wrote such a script many years ago and have been using it since. It required minor modifications as I moved from one employer to the next and received occasional enhancements as they occurred to me. ------------------------------ Date: 20 Jul 2008 02:42:10 GMT From: VAXman- @SendSpamHere.ORG Subject: Re: c. 2008 Brian Schenkenberger. Message-ID: <4882a602$0$5009$607ed4bc@cv.net> In article <48821152$0$1838$c3e8da3@news.astraweb.com>, JF Mezei writes: >Mr VAXman, > >does this mean that we must now break usenet rules because we must now >quote your entire posts including the disclaimer when responding to you >(instead of quoting only relevant text) ???? Outside of usenet. -- VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)COM ... pejorative statements of opinion are entitled to constitutional protection no matter how extreme, vituperous, or vigorously expressed they may be. (NJSC) Copr. 2008 Brian Schenkenberger. Publication of _this_ usenet article outside of usenet _must_ include its contents in its entirety including this copyright notice, disclaimer and quotations. ------------------------------ Date: Sat, 19 Jul 2008 11:43:59 -0700 (PDT) From: AEF Subject: Re: Question about quoting inside a string Message-ID: <6b1c0d5c-2f77-4d4e-9fdd-a7f52a97ceee@34g2000hsf.googlegroups.com> On Jul 19, 7:46 am, VAXman- @SendSpamHere.ORG wrote: > In article <48813EEF.4E6DF...@spam.comcast.net>, David J Dachtera writes: > > > > >Bob Koehler wrote: > > >> JF Mezei wrote: > >> > I need to produce the following: > > >> > $im_convert temp.gif - > >> > -crop 240x300+237+1 - > >> > -font Helvetica-Bold -pointsize 20 - > >> > -draw "fill black text 300,280 'value' " temp.jpg > [...] > > Why not: > > $ value := "'"+value+"'" > > and then JF's original command? Because you need =, not := and ''VALUE', not '''VALUE'' DDCL> SH SYM ZERO ZERO == "ONE" DCL> $ VALUE = "'"+ZERO+"'" DCL> WC "BEG ''VALUE' END" "BEG 'ONE' END" 15 1 FORTRAN STOP DCL> where WC is a foreign command that runs a program I wrote that grabs the command line via LIB$GET_FOREIGN. > > -- > VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)COM [...] ------------------------------ Date: Sat, 19 Jul 2008 11:47:05 -0700 (PDT) From: AEF Subject: Re: Question about quoting inside a string Message-ID: On Jul 18, 9:10 pm, David J Dachtera wrote: > Bob Koehler wrote: > > > JF Mezei wrote: > > > I need to produce the following: > > > > $im_convert temp.gif - > > > -crop 240x300+237+1 - > > > -font Helvetica-Bold -pointsize 20 - > > > -draw "fill black text 300,280 'value' " temp.jpg > > > I think this will work, assuming value is a string: > > > $im_convert temp.gif - > > -crop 240x300+237+1 - > > -font Helvetica-Bold -pointsize 20 - > > -draw "fill black text 300,280 " + value + " " temp.jpg > > > But if it doesn't, then this: > > > $temp = "fill black text 300,280 " + value + " " > > $im_convert temp.gif - > > -crop 240x300+237+1 - > > -font Helvetica-Bold -pointsize 20 - > > -draw 'temp temp.jpg > > Almost there. One last refinement: > > $temp = "fill black text 300,280 '" + value + "'" > $im_convert temp.gif - > -crop 240x300+237+1 - > -font Helvetica-Bold -pointsize 20 - > -draw "''temp'" temp.jpg > > ...ought to do it. > > D.J.D. Yep, looks good: DCL> SH SYM ZERO ZERO == "ONE" DCL> TEMP = "fill black text 300,280 '" + ZERO + "'" + " END" DCL> SH SYM TEMP TEMP = "fill black text 300,280 'ONE' END" DCL> WC "''TEMP'" "fill black text 300,280 'ONE' END" 35 1 FORTRAN STOP DCL> AEF ------------------------------ Date: Sat, 19 Jul 2008 11:50:45 -0700 (PDT) From: AEF Subject: Re: Question about quoting inside a string Message-ID: <19cc93a8-ed3c-42d4-a887-036a4a6e4fcb@m73g2000hsh.googlegroups.com> On Jul 18, 8:28 am, Albrecht Schlosser wrote: > JF Mezei wrote: > > I need to produce the following: > > > $im_convert temp.gif - > > -crop 240x300+237+1 - > > -font Helvetica-Bold -pointsize 20 - > > -draw "fill black text 300,280 'value' " temp.jpg > > > The above will work correctly since VMS sees a double quote delimited > > string and inside, having single quotes is OK. > > > However, I need "value" to be a symbol that is substituted. > > > So this would intinctively become: > > > -draw "fill black text 300,280 '''mysymbol'' " temp.jpg > > > (replacing value with ''mysymbol') > > > However, this yields: > > > -draw "fill black text 300,280 mysymbol " temp.jpg > > > First 3 quotes probably cause am emty symbol name to be substituted to > > nothing, and the ending double single quotes start symbol substitution > > that gets aborted after the space and are removed, leaving an > > untranslated symbol name. > > > doing this works: > > > -draw "fill black text 300,280 ' ''mysymbol' ' " temp.jpg > > > Aka, adding a space between the textual quote at start and end so the > > the symbol's quotes. But this adds spaces to both sides of the value. > > > Is there some way to get a ''symbol' to be substituted and be surrounded > > by single quotes ? > > $ sq[0,8]=39 ! single quote > $ value = "TeSt" > $ string = "This is a test "+sq+value+sq+"." > $ write sys$output "''string'" > This is a test 'TeSt'. > $ > > would this work ? > > Albrecht Looks good: DCL> SH SYM ZERO ZERO == "ONE" DCL> SH SYM SQ SQ = "'" DCL> $ string = "This is a test "+sq+zero+sq+"." DCL> WC "''STRING'" "This is a test 'ONE'." 23 1 FORTRAN STOP DCL> ------------------------------ Date: Sat, 19 Jul 2008 11:53:04 -0700 (PDT) From: AEF Subject: Re: Question about quoting inside a string Message-ID: On Jul 18, 3:30 am, gartm...@nonsense.immunbio.mpg.de (Christoph Gartmann) wrote: > In article <48804324$0$18530$c3e8...@news.astraweb.com>, JF Mezei writes: > > > > >I need to produce the following: > > >$im_convert temp.gif - > > -crop 240x300+237+1 - > > -font Helvetica-Bold -pointsize 20 - > > -draw "fill black text 300,280 'value' " temp.jpg > > >The above will work correctly since VMS sees a double quote delimited > >string and inside, having single quotes is OK. > > >However, I need "value" to be a symbol that is substituted. > > >So this would intinctively become: > > >-draw "fill black text 300,280 '''mysymbol'' " temp.jpg > > >(replacing value with ''mysymbol') > > >However, this yields: > > > -draw "fill black text 300,280 mysymbol " temp.jpg > > >First 3 quotes probably cause am emty symbol name to be substituted to > >nothing, and the ending double single quotes start symbol substitution > >that gets aborted after the space and are removed, leaving an > >untranslated symbol name. > > >doing this works: > > > -draw "fill black text 300,280 ' ''mysymbol' ' " temp.jpg > > >Aka, adding a space between the textual quote at start and end so the > >the symbol's quotes. But this adds spaces to both sides of the value. > > >Is there some way to get a ''symbol' to be substituted and be surrounded > >by single quotes ? > > -draw "fill black text 300,280 ''mysymbol' " temp.jpg > > should do what you want. > > Regards, > Christoph Gartmann > > -- > Max-Planck-Institut fuer Phone : +49-761-5108-464 Fax: -80464 > Immunbiologie > Postfach 1169 Internet: gartmann@immunbio dot mpg dot de > D-79011 Freiburg, Germany > http://www.immunbio.mpg.de/home/menue.html Yep, if you do it this way: DCL> SH SYM ZERO ZERO == "ONE" DCL> A = f$fao("fill black text 300,280 '!AS'", ZERO) DCL> WC "''A'" "fill black text 300,280 'ONE'" 31 1 FORTRAN STOP DCL> ------------------------------ Date: Sat, 19 Jul 2008 11:54:17 -0700 (PDT) From: AEF Subject: Re: Question about quoting inside a string Message-ID: On Jul 18, 3:26 am, rejoc wrote: > le 18.07.2008 09:15 JF Mezei a =E9crit: > > > I need to produce the following: > > > $im_convert temp.gif - > > -crop 240x300+237+1 - > > -font Helvetica-Bold -pointsize 20 - > > -draw "fill black text 300,280 'value' " temp.jpg > > > The above will work correctly since VMS sees a double quote delimited > > string and inside, having single quotes is OK. > > > However, I need "value" to be a symbol that is substituted. > > > So this would intinctively become: > > > -draw "fill black text 300,280 '''mysymbol'' " temp.jpg > > > (replacing value with ''mysymbol') > > > However, this yields: > > > -draw "fill black text 300,280 mysymbol " temp.jpg > > > First 3 quotes probably cause am emty symbol name to be substituted to > > nothing, and the ending double single quotes start symbol substitution > > that gets aborted after the space and afill black text 300,280 '''mysym= bol'' "re removed, leaving an > > untranslated symbol name. > > > doing this works: > > > -draw "fill black text 300,280 ' ''mysymbol' ' " temp.jpg > > > Aka, adding a space between the textual quote at start and end so the > > the symbol's quotes. But this adds spaces to both sides of the value. > > > Is there some way to get a ''symbol' to be substituted and be surrounde= d > > by single quotes ? > > something like f$fao("fill black text 300,280 '!AS'", mysymbol) ?? Yes, if you do it like this: DCL> SH SYM ZERO ZERO =3D=3D "ONE" DCL> A =3D f$fao("fill black text 300,280 '!AS'", ZERO) DCL> WC "''A'" "fill black text 300,280 'ONE'" 31 1 FORTRAN STOP DCL> AEF ------------------------------ Date: Sat, 19 Jul 2008 11:55:55 -0700 (PDT) From: AEF Subject: Re: Question about quoting inside a string Message-ID: <73dbe8b0-5f0a-4c00-9d57-e7a99e1db175@f63g2000hsf.googlegroups.com> On Jul 19, 2:53 pm, AEF wrote: > On Jul 18, 3:30 am, gartm...@nonsense.immunbio.mpg.de (Christoph > > > > Gartmann) wrote: > > In article <48804324$0$18530$c3e8...@news.astraweb.com>, JF Mezei writes: > > > >I need to produce the following: > > > >$im_convert temp.gif - > > > -crop 240x300+237+1 - > > > -font Helvetica-Bold -pointsize 20 - > > > -draw "fill black text 300,280 'value' " temp.jpg > > > >The above will work correctly since VMS sees a double quote delimited > > >string and inside, having single quotes is OK. > > > >However, I need "value" to be a symbol that is substituted. > > > >So this would intinctively become: > > > >-draw "fill black text 300,280 '''mysymbol'' " temp.jpg > > > >(replacing value with ''mysymbol') > > > >However, this yields: > > > > -draw "fill black text 300,280 mysymbol " temp.jpg > > > >First 3 quotes probably cause am emty symbol name to be substituted to > > >nothing, and the ending double single quotes start symbol substitution > > >that gets aborted after the space and are removed, leaving an > > >untranslated symbol name. > > > >doing this works: > > > > -draw "fill black text 300,280 ' ''mysymbol' ' " temp.jpg > > > >Aka, adding a space between the textual quote at start and end so the > > >the symbol's quotes. But this adds spaces to both sides of the value. > > > >Is there some way to get a ''symbol' to be substituted and be surrounded > > >by single quotes ? > > > -draw "fill black text 300,280 ''mysymbol' " temp.jpg > > > should do what you want. > > > Regards, > > Christoph Gartmann > > > -- > > Max-Planck-Institut fuer Phone : +49-761-5108-464 Fax: -80464 > > Immunbiologie > > Postfach 1169 Internet: gartmann@immunbio dot mpg dot de > > D-79011 Freiburg, Germany > > http://www.immunbio.mpg.de/home/menue.html > > Yep, if you do it this way: > > DCL> SH SYM ZERO > ZERO == "ONE" > DCL> A = f$fao("fill black text 300,280 '!AS'", ZERO) > DCL> WC "''A'" > "fill black text 300,280 'ONE'" > 31 > 1 > FORTRAN STOP > DCL> Uh, I meant to reply with this to rejoc's post. The problem with yours is that the value of the symbol needs to be surrounded with quotes. He wants "blah 'value_of_symbol' blah" not "blah value_of_symbol' blah" AEF ------------------------------ Date: Sat, 19 Jul 2008 15:02:19 -0400 From: "Richard B. Gilbert" Subject: Re: Question about quoting inside a string Message-ID: AEF wrote: > On Jul 19, 2:53 pm, AEF wrote: >> On Jul 18, 3:30 am, gartm...@nonsense.immunbio.mpg.de (Christoph >> >> >> >> Gartmann) wrote: >>> In article <48804324$0$18530$c3e8...@news.astraweb.com>, JF Mezei writes: >>>> I need to produce the following: >>>> $im_convert temp.gif - >>>> -crop 240x300+237+1 - >>>> -font Helvetica-Bold -pointsize 20 - >>>> -draw "fill black text 300,280 'value' " temp.jpg >>>> The above will work correctly since VMS sees a double quote delimited >>>> string and inside, having single quotes is OK. >>>> However, I need "value" to be a symbol that is substituted. >>>> So this would intinctively become: >>>> -draw "fill black text 300,280 '''mysymbol'' " temp.jpg >>>> (replacing value with ''mysymbol') >>>> However, this yields: >>>> -draw "fill black text 300,280 mysymbol " temp.jpg >>>> First 3 quotes probably cause am emty symbol name to be substituted to >>>> nothing, and the ending double single quotes start symbol substitution >>>> that gets aborted after the space and are removed, leaving an >>>> untranslated symbol name. >>>> doing this works: >>>> -draw "fill black text 300,280 ' ''mysymbol' ' " temp.jpg >>>> Aka, adding a space between the textual quote at start and end so the >>>> the symbol's quotes. But this adds spaces to both sides of the value. >>>> Is there some way to get a ''symbol' to be substituted and be surrounded >>>> by single quotes ? >>> -draw "fill black text 300,280 ''mysymbol' " temp.jpg >>> should do what you want. >>> Regards, >>> Christoph Gartmann >>> -- >>> Max-Planck-Institut fuer Phone : +49-761-5108-464 Fax: -80464 >>> Immunbiologie >>> Postfach 1169 Internet: gartmann@immunbio dot mpg dot de >>> D-79011 Freiburg, Germany >>> http://www.immunbio.mpg.de/home/menue.html >> Yep, if you do it this way: >> >> DCL> SH SYM ZERO >> ZERO == "ONE" >> DCL> A = f$fao("fill black text 300,280 '!AS'", ZERO) >> DCL> WC "''A'" >> "fill black text 300,280 'ONE'" >> 31 >> 1 >> FORTRAN STOP >> DCL> > > Uh, I meant to reply with this to rejoc's post. The problem with yours > is that the value of the symbol needs to be surrounded with quotes. He > wants > > "blah 'value_of_symbol' blah" > > not > > "blah value_of_symbol' blah" > > AEF How about: ALPHA5_$ xyzzy:=="Mugump" ALPHA5_$ show symb xyzzy XYZZY == "Mugump" ALPHA5_$ ------------------------------ End of INFO-VAX 2008.402 ************************