Derek,
The format he is talking about is not a known format, unless you are talking
a binary field redefined as Pic x(3). Buth then again the binary notation
(base 2) and the contents of the field (base 10) would give errors on
conversion unless you write code to handle it. That is a way out but WHO
writes custom code to do number crunching in business applications. We have
enough trouble keeping the Debits and Credits from copulating!!!
bobbee
From: "Hornby, Derek" <[EMAIL PROTECTED]>
Reply-To: MQSeries List <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: WMQI2.1 - COBOL Definition in MRM
Date: Fri, 7 Feb 2003 09:53:13 -0500
Christian and Bobbee:
I can't quite figure out what you guys think is in the offending field --
for example, using "54321" as example, byte by byte, is it:
05 43 21
Or
54 32 1S
Where they just want you to ignore the sign (which could be "F" , "C" , "D"
-- or one of more obscure ones I have forgotten..) .... The first format is
unusual, but I have seen it used in a few
ancient programs.... But perhaps the second is intended...
-----Original Message-----
From: Bock, Christian [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 9:38 AM
To: [EMAIL PROTECTED]
Subject: AW: WMQI2.1 - COBOL Definition in MRM
Hey Bobbee,
I'm a college of Christian, and I think I have 15 year experience in
(Cobol-)programming, but like I see it's not enough. Here the detail
information of our problem:
The first problem is:
We try to convert a field which is declared in Cobol PIC S9(6) COMP-3 to a
string variable.
The second problem is:
The other field format is PIC 9(6) COMP-3 (without leading sign) and the
following makes it much more difficult, so our Cobol-freaks declared the
definition in PIC X(3) and set a comment to the
declaration (in the
Cobol-copy-structure) the field is "packed".
Now I saw in the program, the move from sending field have PIC X(3) and the
receiving field have PIC 9(6) COMP-3.
Lord only knows why.
But we must translate the field, which is declared in PIC X(3) with comment
"it's packed" and is addressed in the program with indirect definition PIC
9(6) COMP-3, into a string variable.
Wow that is a thing!!! :-))) Good challenge for the weekend, isn't it????
Klemens and Christian
PS: Thanks a bomb for your efforts!
-----Urspr|ngliche Nachricht-----
Von: Robert Broderick [mailto:[EMAIL PROTECTED]]
Gesendet: 07 February 2003 14:26
An: [EMAIL PROTECTED]
Betreff: Re: WMQI2.1 - COBOL Definition in MRM
Christian,
HUMMMMM, Maybe I am about to show my ignorance, BUT....I have been doing MF
programming fo 29 years and have never came across this type of format. The
display format is x'SDSDSDSDSD' and the packed
format is x'DDDDDS'. Lets forget about WMQI for a minute, how do you tell
COBOL that you have a numeris format of x'DDDDDD'????? This is interesting,
if it exist??? My mom used to say, "if you don't
learn something new everyday your stupid" Today may be one of my occasional
non-stupid days!!!!!!!!
bobbee
PS. I have tried but my manager is going on Sunday to Vegas and I have to
stay and cover. Plus my contract is up in March and the future looks bleak.
I want to go and meet all at the conference.
Hopefully I'll see you all next year. Have a good time without me!!
>From: "Bock, Christian" <[EMAIL PROTECTED]>
>Reply-To: MQSeries List <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: WMQI2.1 - COBOL Definition in MRM
>Date: Fri, 7 Feb 2003 09:33:58 +0100
>
>Hello everyone,
>
>we have the problem to define a field in MRM, which is a number in the
>mainframe format "packed without sign" (which is a common format in old
>Cobol programs on MVS), meaning that the field is defined as PIC X in
>COBOL, but contains two digits in each byte, just as a packed-decimal
>field, where the last byte hasn't a digit and the sign but two digits.
>Example:
>COBOL definition: PIC XXX
>Content: 326478
>Byte structure: 32|64|78 (1. byte: 32, 2. byte: 64, 3. byte: 78)
>(The packed decimal definition would be 4 bytes: 03|26|47|8C).
>
>The problem is to map the field into a string containing the right
>number.
>
>Has anybody struggled with this problem before and can tell me how to
>do the MRM definitions ???
>
>Regards
>
>Christian
>
>
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive