HP3000-L Archives

September 2015, Week 1

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:
"Newton, Ernie" <[log in to unmask]>
Reply To:
Newton, Ernie
Date:
Thu, 3 Sep 2015 20:32:37 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (1 lines)
Thanks to all who replied.  I knew a COBOL question would wake up the crowd.



I had forgotten about the single quote option and ended up using good old brute force to have my way.



Ernie



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

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

Sent: Thursday, September 03, 2015 12:01 PM

To: [log in to unmask]

Subject: Re: [HP3000-L] Fun with COBOL



Isn't the word quote a reserved word you can use in working storage?

Pic x value quote.



Sent from my iPad



Janet Hiller  ‗^..^‗



On Sep 3, 2015, at 2:44 PM, Lars Appel <[log in to unmask]> wrote:



Newton, Ernie wrote:

> How do I create the "," between item one and item two?  Is it simply

> PIC "","" (quote comma quote inside double quotes?)



Ernie,



I believe you can use different quotation marks like '","'

or duplicate the "inside" quotes for escaping like """,""""



See http://www.hpmmsupport.com/MPE%20Manual/5000/B3150090013.11820/14.htm



-> Single and Double Quotation Marks in Nonnumeric Literals Embedded

-> Quotation Marks in Nonnumeric Literals



Lars.



* 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 *



________________________________



This message, including any attachments, is intended solely for the use of the named recipient(s) and may contain confidential and/or privileged information. Any unauthorized review, use, disclosure or distribution of this communication(s) is expressly prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy any and all copies of the original message.



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

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


ATOM RSS1 RSS2