View previous topic :: View next topic
|
Author |
Message |
Mahesh_1230
New User
Joined: 28 Nov 2022 Posts: 1 Location: India
|
|
|
|
Hello,
I have a requirement to convert the data of ASCII values to PD
for Example: D000000123 (Including sign value) to Packed Decimal(Comp-3)
can some one help me on this?? |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1333 Location: Bamberg, Germany
|
|
|
|
This can’t be done with JCL or VSAM. Show us Input, desired Output, and what you have tried so far. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2139 Location: USA
|
|
|
|
Mahesh_1230 wrote: |
Hello,
I have a requirement to convert the data of ASCII values to PD
for Example: D000000123 (Including sign value) to Packed Decimal(Comp-3)
can some one help me on this?? |
In this terminology, it cannot be done, physically.
It is like this
Quote: |
I need to cook my food using electricity. Can one help me on this? |
The "ASCII data" is actually a free-format text string in specific encoding (not really used on mainframe, in normal circumstances!!!)
The "COMP-3 data" is a COBOL-specific term referring to a much more general one of IBM mainframe internal numeric formats known as packed decimal format
Unless you understand the meaning of all those terms, the only thing you can do: ask somebody to do your job in full for you to copy-and-paste the result of their work as if it was done by yourself.
Some people might be so kind to do your full job, from top to bottom, and to give you their results. I will not start classes for lazy schoolboys on this forum.
Additional stop mark for myself: you have even no idea what is JCL (to say nothing of VSAM). No starting point to begin any discussion. |
|
Back to top |
|
|
|