Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 can I convert charactor to fixed ... liying DFSORT/ICETOOL 7 Tue May 22, 2018 3:35 pm
No new posts Cannot change DATACLAS on DFSMSdss re... Alan Playford JCL & VSAM 10 Tue May 01, 2018 6:43 pm
No new posts Repeat Sequence Number Until change i... rahulabvp DFSORT/ICETOOL 6 Thu Mar 29, 2018 12:51 pm
No new posts How to group and sum the decimal value sakrat DFSORT/ICETOOL 2 Tue Mar 06, 2018 9:13 pm
No new posts How to change the logon screen info o... sakthikumarT TSO/ISPF 4 Fri Dec 29, 2017 6:44 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us