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

ASCII & EBCD conversion/change for compression decimal f


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 84
Location: In my tiny cubicle ...

PostPosted: Thu Jul 28, 2005 6:20 pm
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
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: 84
Location: In my tiny cubicle ...

PostPosted: Thu Jul 28, 2005 11:21 pm
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts 10 byte RBA conversion DB2 2
No new posts 10 byte RBA conversion -non applicati... JCL & VSAM 1
No new posts 3270 personal communications. Can't c... TSO/ISPF 2
No new posts file manager is doing string conversion IBM Tools 3
Search our Forums:

Back to Top