Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How can I convert charactor to fixed decimal and hex?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
liying

New User


Joined: 27 May 2010
Posts: 47
Location: da lian.china

PostPosted: Tue May 22, 2018 3:35 pm    Post subject: How can I convert charactor to fixed decimal and hex?
Reply with quote

how can I convert the following to case?

Case 1
Input:Charactor(10)
12
100
-30

Output: Fixed Decimal(15,3)

00000002
0000001C

00000010
0000000C

00000000
0000003D

Case2

Input:Charactor(10)
12
100
-30

Output: Fixed Binary(31)
Back to top
View user's profile Send private message

dneufarth

Active User


Joined: 27 Apr 2005
Posts: 313
Location: Inside the SPEW (Cincinnati OH USA)

PostPosted: Tue May 22, 2018 6:05 pm    Post subject:
Reply with quote

What have you tried?
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 313
Location: Inside the SPEW (Cincinnati OH USA)

PostPosted: Tue May 22, 2018 6:12 pm    Post subject:
Reply with quote

And, try searching the forums

http://ibmmainframes.com/about42929.html
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2365
Location: Hampshire, UK

PostPosted: Tue May 22, 2018 6:18 pm    Post subject: Reply to: How can I convert charactor to fixed decimal and hex?
Reply with quote

Look up TRAN under OUTREC in the manual.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2482
Location: @my desk

PostPosted: Tue May 22, 2018 6:40 pm    Post subject: Re: Reply to: How can I convert charactor to fixed decimal and hex?
Reply with quote

As dneufarth has already suggested, the SFF to PD conversion would give you what you want.
Back to top
View user's profile Send private message
liying

New User


Joined: 27 May 2010
Posts: 47
Location: da lian.china

PostPosted: Tue May 22, 2018 7:25 pm    Post subject:
Reply with quote

dneufarth wrote:
And, try searching the forums

http://ibmmainframes.com/about42929.html


than you so much, I have find the answer in the guide your have provided the link.
Back to top
View user's profile Send private message
liying

New User


Joined: 27 May 2010
Posts: 47
Location: da lian.china

PostPosted: Tue May 22, 2018 7:25 pm    Post subject: Re: Reply to: How can I convert charactor to fixed decimal and hex?
Reply with quote

Nic Clouston wrote:
Look up TRAN under OUTREC in the manual.


thank you so much for your hint , I have found the answer.
Back to top
View user's profile Send private message
liying

New User


Joined: 27 May 2010
Posts: 47
Location: da lian.china

PostPosted: Tue May 22, 2018 7:29 pm    Post subject: Re: Reply to: How can I convert charactor to fixed decimal and hex?
Reply with quote

Arun Raj wrote:
As dneufarth has already suggested, the SFF to PD conversion would give you what you want.


your hint have really helps a lot. Since the book is so heavy to search.

my answer is

case1
OUTFIL OUTREC=(1,4,SFF,TO=PD,LENGTH=8)

case2
OUTFIL OUTREC=(1,4,SFF,TO=BI,LENGTH=4)
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 -> DFSORT/ICETOOL 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 convert Hex String t char hex Martylin PL/I & Assembler 6 Fri Jun 05, 2020 7:45 pm
No new posts comparasion between BIN FIXED(63) an... javen777 PL/I & Assembler 10 Wed Apr 22, 2020 5:11 pm
This topic is locked: you cannot edit posts or make replies. DFSORT-How to convert ZD to ZS in DFSORT useit DFSORT/ICETOOL 2 Thu Mar 26, 2020 10:43 am
No new posts Convert a packed decimal value to zon... Dinesh Mani DB2 6 Mon Mar 16, 2020 6:02 pm
No new posts convert SUPERC compare report to side... jzhardy CLIST & REXX 5 Fri Feb 21, 2020 8:55 am

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