IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Converting ASCII values to COMP-3 (ZD to PD)


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Mahesh_1230

New User


Joined: 28 Nov 2022
Posts: 1
Location: India

PostPosted: Mon Nov 28, 2022 8:09 pm
Reply with quote

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
View user's profile Send private message
Joerg.Findeisen

Active Member


Joined: 15 Aug 2015
Posts: 940
Location: Bamberg, Germany

PostPosted: Mon Nov 28, 2022 8:38 pm
Reply with quote

This can’t be done with JCL or VSAM. Show us Input, desired Output, and what you have tried so far.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 1650

PostPosted: Mon Nov 28, 2022 9:23 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Converting fixed length file to excel... IBM Tools 7
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
No new posts Conditional replace values in output ... DFSORT/ICETOOL 3
No new posts Join files where value in one is betw... DFSORT/ICETOOL 6
No new posts EBCDIC and ASCII CICS 7
Search our Forums:

Back to Top