[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnubol: Name is Select/Assign clause
"William M. Klein" wrote:
>
> I was just cleaning up some old notes and read this. FYI, on IBM mainframes
> (today), *EITHER* a "data-name" or a "literal" in the Select/Assign clause
> points to a DDName. (actually, on CMS, there is a way to "convert" it to a
> physical file name - but that is fairly unusual.) OTOH, in Micro Focus
> (MERANT) COBOL - if you have a literal, it is always a "physical file" name
> (the thing known to the operating system - this may or many not "assume" the
> local directory). But a data-name may *either* point to an environment
> variable - or a data-name (in Working-Storage - for example) that had the
> physical file name as its value. Which of these last two options is meant in
> Micro Focus COBOL - depends upon a compiler directive.
>
AFAIK, to have the identifier point to an environment variable, you have
to use the EXTERNAL keyword, and to have the identifier point to a
Working-storage member, you have to use the keyword DYNAMIC, in the
ASSIGN clause (separate from the ACCESS clause--two allowable DYNAMICs.
:( ). In MicroFocus, anyhow. We code all of our SELECTs that
way--either EXTERNAL, or more commonly, DYNAMIC. (e.g., ASSIGN TO
DYNAMIC 300-FILE-NAME). We may or may not want to support that (I
suspect we would, since it's a small addition). CMS was a beast of a
different color--I only ever saw it in school environments. Here, we
use the de facto JCL DD statement. Gotta love that JCL! ;)
> P.S. If possible, would people please not use "MF COBOL" to describe EITHER
> "Micro Focus COBOL" or "Mainframe COBOL" - as it does tend to be ambiguous.
To me, it's always beem either "MF COBOL" or "COBOL II" or simply,
"mainframe". But, I don't do a whole lot on the mainframe these days
(although, I suspect it's just a temporary lull in the storm. :/ ). Why
don't we designate MF to mean Microfocus, and MVS or whatever for the
mainframe?
Damn the semantics! Full speed ahead!
--
Matthew Vanecek
Visit my Website at http://mysite.directlink.net/linuxguy
For answers type: perl -e 'print
$i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
*****************************************************************
For 93 million miles, there is nothing between the sun and my shadow
except me. I'm always getting in the way of something...
--
This message was sent through the gnu-cobol mailing list. To remove yourself
from this mailing list, send a message to majordomo@lusars.net with the
words "unsubscribe gnu-cobol" in the message body. For more information on
the GNU COBOL project, send mail to gnu-cobol-owner@lusars.net.