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

Bit to char or number conversion using SORT


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Jul 10, 2013 6:56 pm
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
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: 1788
Location: Bloomington, IL

PostPosted: Wed Jul 10, 2013 7:19 pm
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

Moderator Emeritus


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

PostPosted: Wed Jul 10, 2013 8:46 pm
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Jul 10, 2013 9:11 pm
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
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: 2455
Location: Hampshire, UK

PostPosted: Wed Jul 10, 2013 10:37 pm
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

Moderator Emeritus


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

PostPosted: Thu Jul 11, 2013 12:21 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top