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 > What are the te...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 16 Topic 4106 of 4115
Post > Topic >>

What are the test results ?

by "William M. Klein" <wmklein@[EMAIL PROTECTED] > May 7, 2008 at 10:00 PM

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




 16 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 ?
"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 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Tue May 13 21:34:06 CDT 2008.