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: 418
Location: Inside the SPEW (Southwest Ohio, 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: 418
Location: Inside the SPEW (Southwest Ohio, 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: 2455
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Keep leading zero(s) after convert fl... SYNCSORT 7
No new posts Convert single row multi cols to sing... DFSORT/ICETOOL 6
Search our Forums:

Back to Top