× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: Passing numeric fields to COBOL program
  • From: Paul Tuohy <tuohyp@xxxxxxx>
  • Date: Wed, 10 Jun 1998 00:35:16 +0100

Gary, does this problem occur when you are passing the parameter from a 
command line? If so, the problem is that the number you are passing is 
signed where as the program is expecting packed, hence you key the number 
as a hex value.

Paul Tuohy

-----Original Message-----
From:   Gary Lehman [SMTP:Gary_Lehman@mail.mchcp.org]
Sent:   09 June 1998 16:13
To:     'MIDRANGE-L@MIDRANGE.COM'
Subject:        Passing numeric fields to COBOL program

Does anyone know why you have to pass a numeric field(ex such as a date) in
hex format?  I'm trying to pass an 8 digit instead of 6 like we've always
done, but I never had anyone explain to me why hex format is used.  Does it
have anything to do with packing data?

Gary Lehman
Programmer Analyst
Missouri Consolidated Health Care Plan
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to 
MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: 
david@midrange.com
+---

begin 600 WINMAIL.DAT
M>)\^(A(7`0:0" `$```````!``$``0>0!@`(````Y 0```````#H``$(@ <`
M& ```$E032Y-:6-R;W-O9G0@36%I;"Y.;W1E`#$(`0V ! `"`````@`"``$$
MD 8`P $```$````0`````P``, (````+``\.``````(!_P\!````30``````
M``"!*Q^DOJ,0&9UN`-T!#U0"`````$U)1%)!3D=%+4Q 34E$4D%.1T4N0T]-
M`%--5% `34E$4D%.1T4M3$!-241204Y'12Y#3TT`````'@`", $````%````
M4TU44 `````>``,P`0```!@```!-241204Y'12U,0$U)1%)!3D=%+D-/30`#
M`!4,`0````,`_@\&````'@`!, $````:````)TU)1%)!3D=%+4Q 34E$4D%.
M1T4N0T]-)P````(!"S !````'0```%--5% Z34E$4D%.1T4M3$!-241204Y'
M12Y#3TT``````P``.0`````+`$ Z`0```!X`]E\!````& ```$U)1%)!3D=%
M+4Q 34E$4D%.1T4N0T]-``(!]U\!````30````````"!*Q^DOJ,0&9UN`-T!
M#U0"`````$U)1%)!3D=%+4Q 34E$4D%.1T4N0T]-`%--5% `34E$4D%.1T4M
M3$!-241204Y'12Y#3TT``````P#]7P$````#`/]?``````(!]@\!````! ``
M``````(93P$$@ $`+ ```%)%.B!087-S:6YG(&YU;65R:6,@9FEE;&1S('1O
M($-/0D],('!R;V=R86T`&@\!!8 #``X```#.!P8`"@```",`$ `#`!L!`2" 
M`P`.````S@<&``H````?`"<``P`N`0$)@ $`(0```# U.#4Q,C$P1D0Y,T)$
M,3%!-C<T,39#,C4R13(V0S9&``4'`0.0!@`4"P``(0````L``@`!````"P`C
M```````#`"8```````L`*0```````P`N```````#`#8``````$ `.0!@/L-!
M_Y.]`1X`< `!````+ ```%)%.B!087-S:6YG(&YU;65R:6,@9FEE;&1S('1O
M($-/0D],('!R;V=R86T``@%Q``$````6`````;V3_T&IKX$68O_X$=& :M&S
MO:*6#@``'@`># $````%````4TU44 `````>`!\,`0````\```!T=6]H>7! 
M:6)M+FYE= ```P`&$""?2C,#``<0B0,``!X`"! !````90```$=!4EDL1$]%
M4U1(25-04D]"3$5-3T-#55)72$5.64]505)%4$%34TE.1U1(15!!4D%-151%
M4D923TU!0T]-34%.1$Q)3D4_24933RQ42$504D]"3$5-25-42$%45$A%3E5-
M0D4``````@$)$ $```#J!P``Y@<``)P2``!,6D9U-PWJ0 ,`"@!R8W!G,3(U
M<C(,8&,Q`S !!PM@;I$.$# S,P\69F4/DD\!]P*D`V,"`&-H"L!SA&5T`M%P
M<G$R``"2*@JA;F\24" P`="%`= V#Z P-3 T%"'S`= 4$#1]!VT"@P!0`]3[
M$?\3"V(3X110$[(8]!30KP<3`H "D0CF.PEO,!K?^F4.,#4<"ATA'-\=Z1OT
M_QX2''\@3R -'X\=OQP/$&#\,C@EVB;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!$-0``CV!>($
MD;M1"K1-L+^\<% `46#&(C[B"'%AO^"?S5SA60CUB57YD2!!U''_#= 3!HI 
MU-#;$$M0B0!-P+^*D-M "')Q(U"P46!#PJ+64&XQ"/4KU4A\6I"[8K_!,^]P
MBD#H(']1[W!3&.&7N_'30C[B3,50="$<F//Z< ?08FT+X0:AA4 0T?_4T[K@
M98"_<;S1%D"+\OI2]_.Y(* >!"Z_(<D6(":&`/]+4,(@^E*[4]M ,7 AQ(B0
MX2*/+5-50B.?'^?O4(\E.+ZS)@\G'RU53B@_;1R743#@,7!I&B' (&C_VQ#Z
M( ZP[W ^T(_ `F##T1\ET^]P*V,"(#7P<B]O=X3@40#Z8'):@ APA2!D?RV;
M&^GWP-)6(>+3.,F6?08`-G$VL ```P`0$ `````#`!$0``````,`@!#_____
M0 `',,!K/\#^D[T!0 `(,,!K/\#^D[T!"P``@ @@!@``````P ```````$8`
M`````X4````````#``* "" &``````# ````````1@`````0A0````````,`
M!8 (( 8``````, ```````!&`````%*%``"W#0``'@`E@ @@!@``````P ``
M`````$8`````5(4```$````$````."XP``,`)H (( 8``````, ```````!&
M``````&%````````"P`O@ @@!@``````P ```````$8`````#H4````````#
M`#" "" &``````# ````````1@`````1A0````````,`,H (( 8``````, `
M``````!&`````!B%````````'@!!@ @@!@``````P ```````$8`````-H4`
M``$````!`````````!X`0H (( 8``````, ```````!&`````#>%```!````
M`0`````````>`$. "" &``````# ````````1@`````XA0```0````$`````
A````'@`]``$````%````4D4Z( `````#``TT_3<``-K"
`
end

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.