HP3000-L Archives

August 2015, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Francois Desrochers <[log in to unmask]>
Reply To:
Francois Desrochers <[log in to unmask]>
Date:
Fri, 14 Aug 2015 12:10:46 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (1 lines)
Craig,



I think you need to "escape" the greater-than with an exclamation point as in:



FDE:SETVAR SPOOL_NBR "O1234"

FDE:SETVAR COPY_FROM,"awk '{$1 ='""; print }' " + RTRIM("!SPOOL_NBR") + ".OUT.HPSPOOL " +  ">"   + " " +  RTRIM("!SPOOL_NBR")

FDE:ECHO !COPY_FROM

<Displays nothing. A temporary file called O1234 is created>

FDE: !COPY_FROM

<Displays nothing. A temporary file called O1234 is created>



FDE:SETVAR COPY_FROM,"awk '{$1 ='""; print }' " + RTRIM("!SPOOL_NBR") + ".OUT.HPSPOOL " +  "!>"   + " " +  RTRIM("!SPOOL_NBR")

FDE:ECHO !COPY_FROM

awk '{$1 ='"; print }' O1234.OUT.HPSPOOL > O1234

FDE:!COPY_FROM

awk '{$1 ='"; print }' O1234.OUT.HPSPOOL > O1234

Unknown command name. (CIERR 975)



HTH



Thanks...François



-----Original Message-----

From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On Behalf Of Craig Lalley

Sent: August-13-15 11:52 PM

To: [log in to unmask]

Subject: [HP3000-L] special characters in strings...



SETVAR COPY_FROM,"awk '{$1 ='""; print }' " + RTRIM("!SPOOL_NBR") &

                      + ".OUT.HPSPOOL " +  ">"   + " " +  RTRIM("!SPOOL_NBR") ECHO !COPY_FROM 



It all fails with the >

How do I pass the > as a string and not an operator?



Thanks!

-Craig



* To join/leave the list, search archives, change list settings, *

* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *



* To join/leave the list, search archives, change list settings, *

* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *


ATOM RSS1 RSS2