× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: stupid cobol question
  • From: rbbaird@xxxxxxxxxxx (Rick Baird)
  • Date: Mon, 21 Apr 1997 18:58:32 -0500

Hey eva'body,

Thanks again for the help, but I need more....

Scott Monnig wrote:

> Yes there is a *LIKE like working storage definition, it is LIKE.  When
> defining working storage variables instead of a normal PIC X(2) or
> whatever, substitute LIKE FIELD or LIKE FIELD OF QUALIFIER:
> 
>         01  ws-variable1      LIKE FIELD1.
>         01  ws-variable2      LIKE FIELD2 OF MASTERREC.

and I said, among other things....

> my problem was that, out of necessity, I had two
> references (dds copys) to the same fields (file) in working storage, but
> I needed unique field names to perform sql selects etc.  

Ok..   I tried the "LIKE" instead of PIC, but the SQL precompiler didn't
"like" it. 

I get the message "host variable is unusable or undefined".

I commented out all the SQL stuff, and compiled it as a regular cobol
pgm, and it compiled just fine.   

Am I missing something?  Is there any way to get the precompiler to
translate the like statements?  or, as I suspect, I'm SOL.

Thanks again, in advance.

rick
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the Midrange System Mailing List!  To submit a new message,   *
* send your mail to "MIDRANGE-L@midrange.com".  To unsubscribe from     *
* this list send email to MAJORDOMO@midrange.com and specify            *
* 'unsubscribe MIDRANGE-L' in the body of your message.  Questions      *
* should be directed to the list owner / operator: david@midrange.com   *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.