OS/VS COBOL Behavior vs. Enterprise



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

OS/VS COBOL Behavior vs. Enterprise

Postby sray@gtsoftware.com » Tue Apr 20, 2010 11:39 pm

Seem to recall that one would get different behavior in this bit of code in OS/VS COBOL vs Enterprise. With Enterprise you get trailing zero in B. How about OS/VS? Anyone remember.

       IDENTIFICATION DIVISION. 
       PROGRAM-ID.    MOVETEST   
       ENVIRONMENT DIVISION.     
       DATA DIVISION.           
       WORKING-STORAGE SECTION. 
      *                         
       01 A PIC X(3) VALUE '89 '.
       01 B PIC 9(3).           
       PROCEDURE DIVISION.       
           MOVE A TO B.         
           DISPLAY B.           
           STOP RUN.
sray@gtsoftware.com
 
Posts: 1
Joined: Tue Apr 20, 2010 11:32 pm
Has thanked: 0 time
Been thanked: 0 time

Re: OS/VS COBOL Behavior vs. Enterprise

Postby CICS Guy » Wed Apr 21, 2010 7:02 pm

I don't see why OS/VS would do anything different from Enterprise, MVC and OI.......
CICS Guy
 
Posts: 246
Joined: Wed Jun 20, 2007 4:08 am
Has thanked: 0 time
Been thanked: 0 time


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post