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
 
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: 289
Location: 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: 289
Location: 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: 2162
Location: 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: 2481
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 Compare fields with decimal chandan.inst SYNCSORT 6 Thu Apr 04, 2019 5:29 pm
No new posts Convert alpha numeric to signed digits Balu5491 COBOL Programming 4 Mon Feb 25, 2019 10:39 pm
No new posts How to convert hex to Displayable for... Log Thangavel DFSORT/ICETOOL 11 Fri Feb 22, 2019 9:33 am
No new posts Convert CICS Modules to AMODE ANY CICSWOLF PL/I & Assembler 6 Fri Feb 08, 2019 7:10 pm
No new posts from CSV to fixed Ron Klop DFSORT/ICETOOL 7 Thu Feb 07, 2019 8:10 pm

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