Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Cobol > Re: What are th...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 16 of 20 Topic 4106 of 4167
Post > Topic >>

Re: What are the test results ?

by "Crebassa.Gilles@[EMAIL PROTECTED] " <Crebassa.Gilles@[EMAIL PROTECTED] > May 9, 2008 at 02:00 AM

On May 8, 12:00 am, "William M. Klein" <wmkl...@[EMAIL PROTECTED]
>
wrote:
> I would like to know what the results are from compiling and running the
> following source code on as many compilers/platforms as possible.  (I
don't
> think it should mater about compiler options/directives - although the
Micro
> Focus BYTEMOVE *might* impact it.)  I believe this is '85 Standard
conforming so
> it should compile (and run) on most systems.
>
> If you want to, you can reply to me off-line or via CLC.
>  (leading spaces may be funny - because of font changes - check for
A-/B-margin
> correctness)
>
>         Identification Division.
>          Program-ID. OverLapI.
>         Data Division.
>          Working-Storage Section.
>         01  Test-Ind1.
>               05 Save-Index Usage Index.
>         01  Group1.
>               05  Group1a.
>                    10  Ind1 Usage Index.
>                    10  Filler Pic X.
>              05  Group1b redefines Group1a.
>                    10  Filler Pic X.
>                    10  Test-Ind2.
>                          15  Ind2 Usage Index.
>         01  Group2.
>               05  Tabl.
>                      10  Each-Row occurs 345 times
>                              indexed by IndA IndB.
>                            15 Elem Pic X(33).
>         Procedure Division.
>          Mainline.
>             Move all "N" to Tabl
>             Move spaces to Group1
>             Set IndB to 1
>             Set IndA to 267
>             Set Save-Index to IndA
>             Move all "Y" to Elem (IndA)
>             Set Ind1 to IndA
>             Set Ind2 to Ind1
>             If Test-Ind1 = Test-Ind2
>                 Display "Bytes Match"
>             Else
>                 Display "Bytes do NOT match"
>             End-If
>             Set IndB to Ind2
>             If IndA = IndB
>                 Display "Index values match"
>             Else
>                 Display "index values do NOT match"
>             End-If
>             Stop Run
>                .
>
> --
> Bill Klein
>  wmklein <at> ix.netcom.com

../uname -a
AIX CW5 2 5

../cobc -version
cobc (OpenCOBOL) 1.1.0 Build date Apr 23 2008 09:10:17
Copyright (C) 2001-2008 Keisuke Nishida / Roger While


../cobtest
Bytes Match
Index values match




 20 Posts in Topic:
What are the test results ?
"William M. Klein&qu  2008-05-07 22:00:45 
Re: What are the test results ?
Richard <riplin@[EMAIL  2008-05-07 17:16:47 
Re: What are the test results ?
Robert <no@[EMAIL PROT  2008-05-07 20:25:25 
Re: What are the test results ?
Robert <no@[EMAIL PROT  2008-05-07 21:12:33 
Re: What are the test results ?
Arnold Trembley <arnol  2008-05-08 05:48:22 
Re: What are the test results ?
"Charles Hottel"  2008-05-08 21:41:48 
Re: What are the test results ?
Arnold Trembley <arnol  2008-05-13 07:12:28 
Re: What are the test results ?
"William M. Klein&qu  2008-05-13 18:26:21 
Re: What are the test results ? (Enterprise COBOL with NOOPT)
Arnold Trembley <arnol  2008-05-15 06:47:08 
Re: What are the test results ?
"Rick Smith" &l  2008-05-07 22:48:31 
Re: What are the test results ?
"tlmfru" <la  2008-05-07 22:19:28 
Re: What are the test results ?
"Frank Swarbrick&quo  2008-05-08 10:20:40 
Re: What are the test results ?
Michael Wojcik <mwojci  2008-05-08 10:43:16 
Re: What are the test results ?
Blondie <gordcrawshaw@  2008-05-08 12:54:33 
Re: What are the test results ?
Jeff Campbell <n8wxs@[  2008-05-08 22:41:00 
Re: What are the test results ?
"Crebassa.Gilles@[EM  2008-05-09 02:00:41 
Re: What are the test results ?
"Robert Heady"   2008-05-12 09:42:15 
Re: What are the test results ? (Enterprise COBOL with NOOPT)
"Frank Swarbrick&quo  2008-05-15 09:46:55 
Re: What are the test results ?
charles.goodman@[EMAIL PR  2008-06-03 13:32:12 
Re: What are the test results ?
charles.goodman@[EMAIL PR  2008-06-03 13:47:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 4 21:17:34 CDT 2008.