473,386 Members | 1,708 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Deciphering data

OK - this probably isn't the right forum for this question but seeing as
I'm desperate and also that I want to code the solution in C# I thought
I'd start here first and then branch out to other newsgroups as
appropriate.

So the issue is I have data from a cliemnt (or from a manager who got
the got from a client) and it contains
data like this....

0000195G0000020{0000000{0000215G0000000{0000000{00 00000{0000000{0000000{
0000000{0000215G

Now the above is supposed to be numeric data the record is made up of 8
in length fields all appended together so
0000195G is one value 0000020{ the next and so on.

My question is (drum roll) does anyone recognize the format that has
been used here. I guess it's been produced by mainframe and the alphabet
and other characters denote sign and precision but apart from that I am
clueless on how to continue. Any help or tips on where to look (which
newsgroups to try) would be appreciated.
Joe

*** Sent via Developersdex http://www.developersdex.com ***
Feb 15 '06 #1
6 1165
Dan
Why do you need to know the format? and is that exactly right, sure yournot
missing a { on the first part?

Assuming the { was meant to be in the first part then that looks like the
delimiter being used here to separate field data, so again assuming you want
to know the format so you can pull the data out and pulling the data out is
the objective just make a function to take in the string or byte array of
data or whatever and loop through it finding the delimiter and storing the
var repeating until it reaches the end.
Any help?

--
Dan
"booksnore" <sa******@plandatamgmt.com> wrote in message
news:uS**************@TK2MSFTNGP10.phx.gbl...
OK - this probably isn't the right forum for this question but seeing as
I'm desperate and also that I want to code the solution in C# I thought
I'd start here first and then branch out to other newsgroups as
appropriate.

So the issue is I have data from a cliemnt (or from a manager who got
the got from a client) and it contains
data like this....

0000195G0000020{0000000{0000215G0000000{0000000{00 00000{0000000{0000000{
0000000{0000215G

Now the above is supposed to be numeric data the record is made up of 8
in length fields all appended together so
0000195G is one value 0000020{ the next and so on.

My question is (drum roll) does anyone recognize the format that has
been used here. I guess it's been produced by mainframe and the alphabet
and other characters denote sign and precision but apart from that I am
clueless on how to continue. Any help or tips on where to look (which
newsgroups to try) would be appreciated.
Joe

*** Sent via Developersdex http://www.developersdex.com ***

Feb 15 '06 #2
Joe,
why would somebody provide you (or your manager, or whomever) with data in a
certain format, which data you are assumed to be able to work with, and not
be able to tell you what the format is?

My point is, wouldn't you want to go back to the source first and ask them?
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"booksnore" wrote:
OK - this probably isn't the right forum for this question but seeing as
I'm desperate and also that I want to code the solution in C# I thought
I'd start here first and then branch out to other newsgroups as
appropriate.

So the issue is I have data from a cliemnt (or from a manager who got
the got from a client) and it contains
data like this....

0000195G0000020{0000000{0000215G0000000{0000000{00 00000{0000000{0000000{
0000000{0000215G

Now the above is supposed to be numeric data the record is made up of 8
in length fields all appended together so
0000195G is one value 0000020{ the next and so on.

My question is (drum roll) does anyone recognize the format that has
been used here. I guess it's been produced by mainframe and the alphabet
and other characters denote sign and precision but apart from that I am
clueless on how to continue. Any help or tips on where to look (which
newsgroups to try) would be appreciated.
Joe

*** Sent via Developersdex http://www.developersdex.com ***

Feb 15 '06 #3

It is a way of encoding signed numbers

The instructions I have for it are

The right most position of a signed numeric field will designate
positive or negative.
- 0 = } + 0 = {
- 1 = J + 1 = A
- 2 = K + 2 = B
- 3 = L + 3 = C
- 4 = M + 4 = D
- 5 = N + 5 = E
- 6 = O + 6 = F
- 7 = P + 7 = G
- 8 = Q + 8 = H
- 9 = R + 9 = I
From this I would interpret the stream you sent as 8 byte number reps

holding
1957, 200, 0, 2157, 0, 0, 0, 0, 0, 0, 2157

I'm afraid that I have no further details on the format, I just found
it as comments in some of our host code.

hth,
Alan.

Feb 15 '06 #4
Hi Joe,

Don't you have any clue as to what this data is supposed to be? How do you
know it is numbers? If it is numbers, it could be almost anything, since
anyone can invent a numeric format. You need more info from your client.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.
"booksnore" <sa******@plandatamgmt.com> wrote in message
news:uS**************@TK2MSFTNGP10.phx.gbl...
OK - this probably isn't the right forum for this question but seeing as
I'm desperate and also that I want to code the solution in C# I thought
I'd start here first and then branch out to other newsgroups as
appropriate.

So the issue is I have data from a cliemnt (or from a manager who got
the got from a client) and it contains
data like this....

0000195G0000020{0000000{0000215G0000000{0000000{00 00000{0000000{0000000{
0000000{0000215G

Now the above is supposed to be numeric data the record is made up of 8
in length fields all appended together so
0000195G is one value 0000020{ the next and so on.

My question is (drum roll) does anyone recognize the format that has
been used here. I guess it's been produced by mainframe and the alphabet
and other characters denote sign and precision but apart from that I am
clueless on how to continue. Any help or tips on where to look (which
newsgroups to try) would be appreciated.
Joe

*** Sent via Developersdex http://www.developersdex.com ***

Feb 15 '06 #5
The format (at face value) of each 'field' is that which would be produced
by the COBOL data definition of:

01 DATA-NAME PIC 9(8) SIGN TRAILING OVERPUNCHED.

For the uninitiated, this means that the field contains 8 digits with the
sign at the end but 'overpunched' on the last digit. The term 'overpunched'
is a throwback to the days of punched cards where a second hole was punched
in a specific column to indicate the sign of the value represented on the
card.

Tht said, it is also posible that the field has an implied decimal point
and, if it represents money then it could be described as:

01 DATA-NAME PIC 9(6)V99 SIGN TRAILING OVERPUNCHED.

The list of 'overpunches' given by alan is correct for SIGN TRAILING
OVERPUNCHED.

If it were SIGN TRAILING OVERPUNCHED then there is a different method of
determining the value.
"booksnore" <sa******@plandatamgmt.com> wrote in message
news:uS**************@TK2MSFTNGP10.phx.gbl...
OK - this probably isn't the right forum for this question but seeing as
I'm desperate and also that I want to code the solution in C# I thought
I'd start here first and then branch out to other newsgroups as
appropriate.

So the issue is I have data from a cliemnt (or from a manager who got
the got from a client) and it contains
data like this....

0000195G0000020{0000000{0000215G0000000{0000000{00 00000{0000000{0000000{
0000000{0000215G

Now the above is supposed to be numeric data the record is made up of 8
in length fields all appended together so
0000195G is one value 0000020{ the next and so on.

My question is (drum roll) does anyone recognize the format that has
been used here. I guess it's been produced by mainframe and the alphabet
and other characters denote sign and precision but apart from that I am
clueless on how to continue. Any help or tips on where to look (which
newsgroups to try) would be appreciated.
Joe

*** Sent via Developersdex http://www.developersdex.com ***

Feb 15 '06 #6
Sorry, last paragraph should read:

If it were SIGN LEADING OVERPUNCHED then there is a different method of
determining the value.

"Stephany Young" <noone@localhost> wrote in message
news:O9****************@TK2MSFTNGP11.phx.gbl...
The format (at face value) of each 'field' is that which would be produced
by the COBOL data definition of:

01 DATA-NAME PIC 9(8) SIGN TRAILING OVERPUNCHED.

For the uninitiated, this means that the field contains 8 digits with the
sign at the end but 'overpunched' on the last digit. The term
'overpunched' is a throwback to the days of punched cards where a second
hole was punched in a specific column to indicate the sign of the value
represented on the card.

Tht said, it is also posible that the field has an implied decimal point
and, if it represents money then it could be described as:

01 DATA-NAME PIC 9(6)V99 SIGN TRAILING OVERPUNCHED.

The list of 'overpunches' given by alan is correct for SIGN TRAILING
OVERPUNCHED.

If it were SIGN TRAILING OVERPUNCHED then there is a different method of
determining the value.
"booksnore" <sa******@plandatamgmt.com> wrote in message
news:uS**************@TK2MSFTNGP10.phx.gbl...
OK - this probably isn't the right forum for this question but seeing as
I'm desperate and also that I want to code the solution in C# I thought
I'd start here first and then branch out to other newsgroups as
appropriate.

So the issue is I have data from a cliemnt (or from a manager who got
the got from a client) and it contains
data like this....

0000195G0000020{0000000{0000215G0000000{0000000{00 00000{0000000{0000000{
0000000{0000215G

Now the above is supposed to be numeric data the record is made up of 8
in length fields all appended together so
0000195G is one value 0000020{ the next and so on.

My question is (drum roll) does anyone recognize the format that has
been used here. I guess it's been produced by mainframe and the alphabet
and other characters denote sign and precision but apart from that I am
clueless on how to continue. Any help or tips on where to look (which
newsgroups to try) would be appreciated.
Joe

*** Sent via Developersdex http://www.developersdex.com ***


Feb 15 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Alex Smith | last post by:
Hi all, I have an application that uses Oracle's JDBC thin driver 9.0.x to have a nice, friendly chat with 8.1.x database. During this exchange the server rudely interrupts the conversation and...
5
by: drdeadpan | last post by:
I asked the DBA to start the Server with options -T1204 and -T3605 and here's what I get. I need help deciphering this. This happens when we have 5 usrs performing concurrent actions and for the...
0
by: NicK chlam via DotNetMonster.com | last post by:
this is the error i get System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement. at System.Data.Common.DbDataAdapter.Update(DataRow dataRows, DataTableMapping tableMapping) at...
3
by: bbernieb | last post by:
Hi, All, Is it possible to access a variable inside of a data binding, without the variable being out of scope? (Note: On the DataBinder line, I get an error message that says "Name 'i' is...
5
by: Gene | last post by:
What can I do if I want to get the result using the sql command? for example, the select command is "select Name from Employee where StaffID=10" How to get the "Name"??? dim Name as string and...
5
by: DC Gringo | last post by:
I am having a problem reading a simple update to the database. Basically I'm testing a small change to the pubs database -- changing the price of the Busy Executive's Database Guide from 19.99 to...
2
by: brad | last post by:
Hello all, I'm new to javascript--not too new to a few other programming languages--and I need your help deciphering the Regexp in the following string. Regular expresions are hard enough in...
17
by: anojjona | last post by:
Hi, I need to figure out what some code that was maliciously executed against a database does. However, it's in a very strange format. It simply declares a variable and sets it equal to a huge...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.