Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Bit to char or number conversion using SORT

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

New User


Joined: 25 May 2010
Posts: 15
Location: chennai

PostPosted: Wed Jul 10, 2013 6:52 pm    Post subject: Bit to char or number conversion using SORT
Reply with quote

Hi,

I have a requirement where some field is stored as bit (0 or 1) to indicated a business flag value as 1 byte.

field example - 01010111

We are in a process of conversion and data needs to fed to another system that doesn't understand the bit value, hence we are forced to format it into a 8 different new field either as character or numeric representing 0 or 1.

I understand DFSORT can convert binary,packed,ZD to other formats but how abt bit data

Can this be acheived using DFSORT or SYNCSORT. if some sample would be helpful. This is a urgent request.

Regards
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Jul 10, 2013 6:56 pm    Post subject:
Reply with quote

Errrrr, surely "bit value" is binary

What system are you feeding it into that can not cope with binary representation.
Back to top
View user's profile Send private message
k_v_mahesh

New User


Joined: 25 May 2010
Posts: 15
Location: chennai

PostPosted: Wed Jul 10, 2013 6:59 pm    Post subject: Reply to: Bit to char or number conversion using SORT
Reply with quote

But how do you get this data out of source mainframe in a re-presentable format to an application in distributed which needs to be loaded
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Wed Jul 10, 2013 7:19 pm    Post subject: Re: Reply to: Bit to char or number conversion using SORT
Reply with quote

k_v_mahesh wrote:
But how do you get this data out of source mainframe in a re-presentable format to an application in distributed which needs to be loaded

By having software engineers write curly-language programs that handle binary (it can be done, you know).
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jul 10, 2013 8:46 pm    Post subject:
Reply with quote

Hello,

If you have normal text data s well as bit-level data, extra care is needed to use the data on the target platform. The text needs to be converted to ascii but the bit-level data must remain as-is to preserve the bit settings.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7236

PostPosted: Wed Jul 10, 2013 9:11 pm    Post subject: Reply to: Bit to char or number conversion using SORT
Reply with quote

Have a look at TRAN=BIT, like here.
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Wed Jul 10, 2013 10:10 pm    Post subject:
Reply with quote

*sigh* It is posted here also?
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1715
Location: UK

PostPosted: Wed Jul 10, 2013 10:37 pm    Post subject:
Reply with quote

Please do not post the same topic on multiple forums on the same day. As you can see, you have wasted some of Kolusu's time.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Jul 11, 2013 12:21 am    Post subject:
Reply with quote

Just another of those who work very hard getting someone else to their research / work . . . icon_sad.gif

I haven't banned anyone yet for mjulti-posting, but i have been tempted icon_rolleyes.gif

I have quietly deleted multi-posts on the forums where i can, though icon_wink.gif

d
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 File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Conversion of a VB file to FB. isssal DFSORT/ICETOOL 1 Mon Oct 31, 2016 10:23 pm
No new posts Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us