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

Senior Member


Joined: 15 Aug 2015
Posts: 1231
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: 2012
Location: USA

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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts Converting fixed length file to excel... IBM Tools 7
Search our Forums:

Back to Top