I had found this useful link for unpacked COMP-3 digit, but i need to unpack COMP digit this time, is anyone know how to unpack it? Thanks a lot!
How to unpack COMP digits using Java?
391 Views Asked by Michael Ouyang At
2
There are 2 best solutions below
0
Hogstrom
On
IBM Provides a library of Java methods to simplify interactions with z/OS services and data formats. An overview can be found here jZOS Toolkit
Here is a link to PackedDecimal Operations
Here are others for managing binary data ByteArrayUnmarshaller
Related Questions in ASCII
- Dart: how to convert Hex String to Ascii string
- Reading character entity reference tag content in C++
- Convet byte[] in ASCII
- Visual C++ - how can I turn a unicode character into char or string?
- Saving a numpy array in ascii format
- Ascii doc syntaxes not provide consistent output & not working as expected
- Why does $'\141' convert to ASCII 'a' as expected, but constructing the same string doesn't convert?
- How would one render a QR code in the logs of a GitHub workflow?
- Is there a recommended way to plot data using ascii symbols?
- Converting ASCII to Unary
- Doesnt \n remain in the buffer?
- Are we able to specify the Answer's XML encoding? Or does Mturk control that?
- C ASCII to Hex (atoh) Function
- ASCII to decimal conversion
- Bcrypt Password Truncation issue solution or Hashing Long Passwords with Bcrypt in Java?
Related Questions in MAINFRAME
- Where can I download ECI resource adapter (cicseci.rar). Unable to find out it in IBM portal
- Mainframe Programming Sorting, OUTFIL REMOVECC,NODETAIL
- Z/OS Cobol 6.3 copy: how to include only a chunk?
- SHA256 Checksum of a File transmitted from Mainframe to Azure
- open fetch and close cursor DB2
- How to "stack" an ISPF command?
- DB2 contention issues
- IBM z/OS TSO ISPF Editor Cancel command - how to add "Are You Sure?" query dialog
- FIlling a zone with S9(5)V9(8) COMP-3
- Mainframe monitoring using Zabbix
- How to programmatically overwrite DCI 2.0 policy via REXX or JCL?
- SEARCH ALL with a key PIC XX
- Why is this COBOL code failing to compile?
- Use MVS Dsname conventions. Mainframe name convention while downloading ftp using python
- COBOL issue (Compiling and executing)
Related Questions in EBCDIC
- ASCII to EBCDIC conversion including (decimal packed comp-3 conversion) for a float value using python 2.7
- Read EBCDIC file in Python
- Writing Mainframe output from pyspark
- PySpark failing to decode 'cp1047' when processing mainframe input
- How to convert EBCDIC with Spanish accent to English in RUST
- How to add a new encoding to vscode
- EBCDIC Encoding cp037 Python
- Save EBCDIC string to a file - Python
- IBM 1600/6250 Mainframe EBCDIC and ASCII format data import to R
- EBCDIC support in c#
- What is the meaning of char foo(|10|) in C?
- Convert integer, signed integer to EBCDIC in java
- Converting EBCDIC to ASCII in C#
- Simple Way in Java to check if char is in EBCDIC
- Loading packed decimals into DB2 for IBM i
Related Questions in PACKED-DECIMAL
- How to avoid that "x0d" is interpreted as a newline character?
- WRBTR field calculation inside CASE throws error for max decimal places
- COBOL Comp-3 In Java
- Loading packed decimals into DB2 for IBM i
- Read packed decimal and convert to numeric in spring boot
- how can I convert a packed decimal format (S370Fpd5) in R?
- Sorting pd fileld in vb file using dfsort in jcl
- Convert a double value to Packed decimal COBOL format PIC S9(5)V9(4) COMP-3/Packed decimal COBOL format PIC S9(3)V9(4) COMP-3 format in JAVA
- Physical storage of COBOL PACKED-DECIMAL field on Little Endian machines
- Convert String to packed decimal in java
- How to unpack COMP digits using Java?
- Unpack mainframe packed decimal with python
- CPU usage C Packed struct vs Unsigned Long Long operations
- Most efficient formula for unpacking 16-bit BCD? (e.g. 0x1234 to 0x01020304)
- Read a packed decimal (Comp-3) number value which is 8 characters; but holds a 13 digit number and convert to 13 digits numeric value
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In most Cobol compilers Comp is a big endian binary integer. For the mainframe only 2/4/8 bytes are supported. So For signed values
if you have the value in an array of bytes you can do
Alternatively you could use the readShort(), readInt() and readLong() methods of DataInputStream
Finally JRecord will let you read Cobol files with a Cobol copybook