Sponsored Content
Full Discussion: COBOL issue
Operating Systems Solaris COBOL issue Post 92527 by Jayaprakash T on Monday 12th of December 2005 10:12:48 AM
Old 12-12-2005
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
 

10 More Discussions You Might Find Interesting

1. Solaris

Cobol linking in Unix

I'm trying to call a C mod from COBOL but I'm currently having difficulty linking my COBOL program with a C module that I've just developed. I've tried using cbllink -v -l -k -BSF CMPCACVN.cbl test.lib but I've got an error that states cbllink: not found. I've also tried using buildclient -C -w -o... (0 Replies)
Discussion started by: soulfactory2002
0 Replies

2. UNIX for Dummies Questions & Answers

Cobol On Unix

Hi , Could anyone please tell me about the whole procedure for compiling, linking the cobol program on unix platform. As i am mainframe guy and very new to unix, any help will be very appriciated, Regards, -Vinit (2 Replies)
Discussion started by: vinit_cyberguy
2 Replies

3. Gentoo

COBOL on linux?!

Hello guys, I'm searching for a good COBOL compiler which runs on linux. In fact I have found one but I'm really lost with its installation!! I don't know how to install it and how it works. In fact I'm not so good in linux and I always have problems with installation, but this time it's... (1 Reply)
Discussion started by: HSN
1 Replies

4. UNIX and Linux Applications

Rm-cobol 85

Does anyone use the following Cobol compiler: RM/COBOL-85 Compiler - Version 5.15.00 for SCO Unix 386. I am looking for a file that might be part of the distribution named "osmain.o" Thanks. (0 Replies)
Discussion started by: jgt
0 Replies

5. Programming

cobol programme

I have some compile programme .crn now I want to run .crn programme on express cobol which allow only *.gnt programme any solution to run *.crn programme (0 Replies)
Discussion started by: bibi
0 Replies

6. Programming

cobol crn programme run on express cobol as .gnt

can i run .crn programme in express cobol which support to .gnt programme .... Plz tell me solution (2 Replies)
Discussion started by: bibi
2 Replies

7. Shell Programming and Scripting

Calling script from RM cobol and returning value to cobol

Is there a way you can return a value from a script that is called from a rm cobol program... 01 WS-COMD-LINE-PGM X(39) value sh ./getUserId.sh 12345" 01 WS-RETURN-SYS-CODE PIC 9(8). CALL "SYSTEM" USING WS-COMD-LINE-PGM GIVING WS-RETURN-SYS-CODE. ... (1 Reply)
Discussion started by: pavanmp
1 Replies

8. SCO

cobol installation

Dear All, while installing mfcobol in sco open unix 5 in piv m/cs, when run #sh ./install this error massage is comming load error file lmfnewdb error code 198 pc=0 call=-1 seg=0 198 load failor chmod warrning can not acess /opt/lib/mflmf/mflmfdb no such file or directory (error-2)... (0 Replies)
Discussion started by: sudhir69
0 Replies

9. Linux

Cobol on Linux

Hello, I have got a specific requirement of running a COBOL code on EL5. Not sure if GCC includes the compiler for COBOL. Currently what I can think of installing openCOBOL in EL5 server and hand it over to developers. From what I think need to do is, compile COBOL code using openCOBOL ... (5 Replies)
Discussion started by: niravkamdar
5 Replies

10. Programming

cobol compiler for suse

hi could you please suggest me any cobol compiler for suse linux. any help would me much appreciated .. -- thanks rakesh kumar (7 Replies)
Discussion started by: rakeshkumar
7 Replies
pppstats(1M)						  System Administration Commands					      pppstats(1M)

NAME
pppstats - print PPP statistics SYNOPSIS
pppstats [-a] [-v] [-r] [-z] [-c <count>] [-w <secs>] [interface] DESCRIPTION
The pppstats utility reports PPP-related statistics at regular intervals for the specified PPP interface. If the interface is unspecified, pppstats defaults to sppp0. The display is split horizontally into input and output sections containing columns of statistics describing the properties and volume of packets received and transmitted by the interface. OPTIONS
The pppstats options are: -a Display absolute values rather than deltas. With this option, all reports show statistics for the time elapsed since the link was initiated. Without this option, the second and subsequent reports show statistics for the time since the last report. -c count Repeat the display count times. If this option is not specified, the default repeat count is 1 if the -w option is not speci- fied, otherwise infinity. -r Display additional statistics summarizing the compression ratio achieved by the packet compression algorithm in use. -v Display additional statistics relating to the performance of the Van Jacobson TCP header compression algorithm. -w wait Pause wait seconds between each display. If this option is not specified, the default interval is five seconds. -z Instead of the standard display, show statistics indicating the performance of the packet compression algorithm in use. EXTENDED DESCRIPTION
The following fields are printed on the input side when the -z option is not used: IN Total number of bytes received by this interface. PACK Total number of packets received by this interface. VJCOMP Number of header-compressed TCP packets received by this interface. VJUNC Number of header-uncompressed TCP packets received by this interface. Not reported when the -r option is specified. VJERR Number of corrupted or bogus header-compressed TCP packets received by this interface. Not reported when the -r option is speci- fied. VJTOSS Number of VJ header-compressed TCP packets dropped on reception by this interface because of preceding errors. Only reported when the -v option is specified. NON-VJ Total number of non-TCP packets received by this interface. Only reported when the -v option is specified. RATIO Compression ratio achieved for received packets by the packet compression scheme in use, defined as the uncompressed size divided by the compressed size. Only reported when the -r option is specified. UBYTE Total number of bytes received, after decompression of compressed packets. Only reported when the -r option is specified. The following fields are printed on the output side: OUT Total number of bytes transmitted from this interface. PACK Total number of packets transmitted from this interface. VJCOMP Number of TCP packets transmitted from this interface with VJ-compressed TCP headers. VJUNC Number of TCP packets transmitted from this interface with VJ-uncompressed TCP headers. Not reported when the -r option is speci- fied. NON-VJ Total number of non-TCP packets transmitted from this interface. Not reported when the -r option is specified. VJSRCH Number of searches for the cached header entry for a VJ header compressed TCP packet. Only reported when the -v option is speci- fied. VJMISS Number of failed searches for the cached header entry for a VJ header compressed TCP packet. Only reported when the -v option is specified. RATIO Compression ratio achieved for transmitted packets by the packet compression scheme in use, defined as the size before compres- sion divided by the compressed size. Only reported when the -r option is specified. UBYTE Total number of bytes to be transmitted before packet compression is applied. Only reported when the -r option is specified. When the -z option is specified, pppstats displays the following fields relating to the packet compression algorithm currently in use. If packet compression is not in use, these fields display zeroes. The fields displayed on the input side are: COMPRESSED BYTE Number of bytes of compressed packets received. COMPRESSED PACK Number of compressed packets received. INCOMPRESSIBLE BYTE Number of bytes of incompressible packets (that is, those which were transmitted in uncompressed form) received. INCOMPRESSIBLE PACK Number of incompressible packets received. COMP RATIO Recent compression ratio for incoming packets, defined as the uncompressed size divided by the compressed size (including both compressible and incompressible packets). The fields displayed on the output side are: COMPRESSED BYTE Number of bytes of compressed packets transmitted. COMPRESSED PACK Number of compressed packets transmitted. INCOMPRESSIBLE BYTE Number of bytes of incompressible packets received; that is, those that were transmitted by the peer in uncompressed form. INCOMPRESSIBLE PACK Number of incompressible packets transmitted. COMP RATIO Recent compression ratio for outgoing packets. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWpppdu | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
pppd(1M), attributes(5) SunOS 5.11 4 May 2001 pppstats(1M)
All times are GMT -4. The time now is 05:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy