Re: How would you do this?
- From: steve@xxxxxxxxxxxx (Steve Comstock)
- Date: 10 Mar 2007 12:12:07 -0800
Bill Klein wrote:
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?
Definitely number 3.
Probably break the word into individual bytes and
set up level 88's for the bits I cared about. Maybe
like this:
01 langs.
02 tier-1 pic x.
88 c-lang value x'80'.
88 cobol-lang value x'04'.
88 fortran-lang value x'01'.
88 c-and-cobol value x'84'.
88 c-and-fortran value x'81'.
88 c-and-cobol-and-fortran value x'85'.
88 cobol-and-fortran value x'05'.
02 tier-2 pic x.
88 pli-lang value x'20'.
88 enterprise-pli-lang value x'10'.
88 all-pli value x'30'.
02 pic xx.
Note: have not tested since have not been on a
z/OS 1.8 system yet.
Kind regards,
-Steve Comstock
----------------------------------------------------------------------
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
.
- References:
- How would you do this?
- From: Bill Klein
- How would you do this?
- Prev by Date: Fw: How would you do this?
- Next by Date: Re: CPU Utilization
- Previous by thread: Re: How would you do this?
- Next by thread: RE: How would you do this?
- Index(es):
Relevant Pages
|