How would you do this?



to: comp.lang.cobol *and* IBM-MAIN

IBM has (relatively) recently created an LE callable service, CEE3INF,
that
returns a "32-bit map" with information about what environment a program
is
running in. See:


http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/CEEA3170/2.2.
5.9

Now, my question is how various "experienced" COBOL programmers would
handle
such information (either in an IBM mainframe environment OR in other
COBOL
environments for those who see this note and don't work in IBM mainframe

environments - but do get "bit maps")

1) Call a non-COBOL program to decode this map (e.g.. Assembler, C, PL/I
or any
other language that can easily handle "bits")

2) Do a "division" loop to figure out which bits are turned on?

3) Use 88-levels with hex literals to check for which bits were turned
on?

4) Use the LE (or comparable) "bit manipulation" routines?

5) Not use CEE3INF from COBOL?

6) Other?

***

Although I wouldn't LIKE it, I can imagine doing this in any of these
ways.
Obviously, when/if a COBOL compiler supports the '02 Standard
Bit/Boolean
features, this becomes "trivial". However, as few (if any) compilers do
this
yet, I was wondering how programmers would handle this requirement.

--
Bill Klein
wmklein <at> ix.netcom.com

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html
.



Relevant Pages

  • Re: How would you do this?
    ... Standard and IBM hasn't implemented USAGE BINARY-CHAR or any other BINARY-xxx ... The best way to do this in Enterprise COBOL is to say ... returns a "32-bit map" with information about what environment a program is ... Use the LE "bit manipulation" routines? ...
    (comp.lang.cobol)
  • Re: How would you do this?
    ... IBM has recently created an LE callable service, CEE3INF, ... that returns a "32-bit map" with information about what environment a program ... Call a non-COBOL program to decode this map (e.g.. ...
    (bit.listserv.ibm-main)
  • Re: How would you do this?
    ... IBM has recently created an LE callable service, CEE3INF, ... and then downloaded the z/OS COBOL manual to see what you can actually DO... ... having faced this problem in the Client/Server environment some ... Call a non-COBOL program to decode this map (e.g.. ...
    (comp.lang.cobol)
  • Re: How would you do this?
    ... IBM has recently created an LE callable service, CEE3INF, ... returns a "32-bit map" with information about what environment a program ... my question is how various "experienced" COBOL programmers would ... Call a non-COBOL program to decode this map (e.g.. ...
    (bit.listserv.ibm-main)
  • How would you do this?
    ... my question is how various "experienced" COBOL programmers would handle ... such information (either in an IBM mainframe environment OR in other COBOL ... Call a non-COBOL program to decode this map (e.g.. ...
    (comp.lang.cobol)