How would you do this?
- From: wmklein@xxxxxxxxxxxx (Bill Klein)
- Date: 10 Mar 2007 11:14:51 -0800
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
.
- Follow-Ups:
- RE: How would you do this?
- From: Gibney, Dave
- Re: How would you do this?
- From: Steve Comstock
- Re: How would you do this?
- From: Gary Walker
- RE: How would you do this?
- Prev by Date: Re: Outsourcing perils was Re: sysprog demand in USA
- Next by Date: Re: How would you do this?
- Previous by thread: Re: Vehicle Renewal Automation Fee Systems??
- Next by thread: Re: How would you do this?
- Index(es):
Relevant Pages
|