Go Back   The UNIX and Linux Forums > Operating Systems > Solaris
.
google site



Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-12-2005
Registered User
 

Join Date: Dec 2005
Posts: 2
COBOL issue

Hi,

I am working on a Mainframe to UNIX replatforming project.
we are facing problems with COBOL COMP-3 fields. We are using the Mainframe emulator software to download the data which has COMP-3 fields and using it as input to the same COBOL programs which were copied from Mainframe and did the required changes to make it compatible to UNIX environment. when we tried to read the data, the COMP-3 fields are taking extra bytes data from other fields.

For example,

FIELD1 of COMP-3 type takes 4 bytes in Mainframe
FIELD2 of COMP-3 type takes 5 bytes in Mainframe

But when used in UNIX,

FIELD1 data has shown as 2 bytes in pysical file and since it occupies 4 bytes rest of the 2 bytes it is conceiving from the rest of the record. so obviously next field FIELD2 will have lost first two bytes of its data and hence it takes 5 bytes from the rest of the record.

Please suggest how to overcome this problem.

Thanks,
JP
Sponsored Links
  #2 (permalink)  
Old 12-13-2005
Registered User
 

Join Date: Dec 2005
Posts: 2
COBOL issue

Hi,

I would like to know whether it takes extra byte in UNIX for COMP-3 fields compared to Mainframe. Please advice.

I have run same program in UNIX and Mainframe hardcoding the values. In UNIX the comp-3 position shifted by one position to the right. I could not figure out the cause. Please advice.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Rm-cobol 85 jgt UNIX and Linux Applications 0 03-18-2008 12:31 PM
Cobol File Status 41 & 42 WS-NFG UNIX for Dummies Questions & Answers 2 10-12-2007 09:23 AM
how to call to unix through cobol naamas03 Shell Programming and Scripting 8 10-22-2006 08:08 AM
COBOL on linux?! HSN Gentoo 1 09-24-2005 04:51 PM
Cobol On Unix vinit_cyberguy UNIX for Dummies Questions & Answers 2 09-12-2005 10:09 AM



All times are GMT -4. The time now is 09:50 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2010. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0