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

How can I convert charactor to fixed decimal and hex?


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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: 319
Location: Inside the SPEW (Cincinnati OH USA)

PostPosted: Tue May 22, 2018 6:05 pm
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: 319
Location: Inside the SPEW (Cincinnati OH USA)

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

And, try searching the forums

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

Global Moderator


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

PostPosted: Tue May 22, 2018 6:18 pm
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: 2481
Location: @my desk

PostPosted: Tue May 22, 2018 6:40 pm
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
Reply with quote

dneufarth wrote:
And, try searching the forums

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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts HOW TO OVERLAY A Packed decimal VALUE... DFSORT/ICETOOL 5
No new posts COnvert a column with mix of hex ,cha... DB2 5
No new posts To convert numeric to Packed Decimal DFSORT/ICETOOL 9
No new posts how to convert Hex String t char hex PL/I & Assembler 6
No new posts comparasion between BIN FIXED(63) an... PL/I & Assembler 10
Search our Forums:

Back to Top