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: 282
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: 282
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: 2100
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: 2414
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 Convert VB file to FB plus special fo... cz016m SYNCSORT 11 Fri Oct 19, 2018 7:26 pm
No new posts Convert a JOBGROUP into an OPC (TWS/I... Steve Coalbran JCL & VSAM 0 Tue Sep 18, 2018 12:06 pm
No new posts RPG II Problem with unsigned Packed d... Andi1982 All Other Mainframe Topics 6 Tue Sep 11, 2018 6:11 pm
This topic is locked: you cannot edit posts or make replies. Convert Julian to Gregorian zh_lad DFSORT/ICETOOL 21 Fri Jul 20, 2018 7:00 pm
No new posts Convert JCL to Unix Shell scripts mistah kurtz All Other Mainframe Topics 2 Sun Jul 01, 2018 7:21 pm

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