Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

ASCII & EBCD conversion/change for compression decimal f

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
rally

New User


Joined: 28 Jul 2005
Posts: 37

PostPosted: Thu Jul 28, 2005 8:01 am    Post subject: ASCII & EBCD conversion/change for compression decimal f
Reply with quote

Hi,

I have a file need upload from PC to Mainframe.

There is a field with compress decimal format.

in MainFrame,

It looks like
TLR..%

hex display
EDD016
33 907C

The 176 is the number value.

Is anybody what should use in PC with ASCII code for the compress field.

I found for normal character, the hex value for ASCII & EBCD is different
for example:
EBCD code CHAR ASCII code
X'30' - 0 - X'F0'
X'40' - SPACE - X'20'
X'C1' - A - X'41'

Thanks.
Back to top
View user's profile Send private message

Prandip

New User


Joined: 04 Mar 2005
Posts: 85
Location: In my tiny cubicle ...

PostPosted: Thu Jul 28, 2005 6:20 pm    Post subject: Re: ASCII & EBCD conversion/change for compression decim
Reply with quote

A field with the value of hex'00176C' sure looks like a packed decimal field to me. You're going to have to unpack it first into a decimal field before uploading the file.
Back to top
View user's profile Send private message
rally

New User


Joined: 28 Jul 2005
Posts: 37

PostPosted: Thu Jul 28, 2005 6:42 pm    Post subject:
Reply with quote

Hi Prandip,

You may misunderstand my mean.

Yes, the value of hex'00176C' is a packed deicmal field in mainframe, this is the final result after upload the file from PC to mainframe/ZOS,

I want to know how to code it in PC use ASCII in order to achieve
the objection.

Thanks.
Back to top
View user's profile Send private message
Prandip

New User


Joined: 04 Mar 2005
Posts: 85
Location: In my tiny cubicle ...

PostPosted: Thu Jul 28, 2005 11:21 pm    Post subject: Re: ASCII & EBCD conversion/change for compression decim
Reply with quote

On my system, it's a hex '001A25' in ASCII.
Back to top
View user's profile Send private message
rally

New User


Joined: 28 Jul 2005
Posts: 37

PostPosted: Fri Jul 29, 2005 7:01 am    Post subject:
Reply with quote

Hi Prandip,

Thanks.

do you know the related rules?

for example, I want to input the packed decimal x'00168C',

how to populate the correct ASCII value.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Jul 30, 2005 7:39 pm    Post subject:
Reply with quote

Hi Rally,

What does this field represent on the PC? That is, what is the field used for?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Joinkeys with decimal scdinesh DFSORT/ICETOOL 3 Fri Feb 10, 2017 4:46 am
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us