Index
2011-03-02 03:42Michael Madigan : Weird format
2011-03-02 04:06Alan Bourke : Re: Weird format
2011-03-02 04:47Michael Madigan : Re: Weird format
2011-03-02 04:52Michael Madigan : Re: Weird format
2011-03-02 05:22Grigore Dolghin : RE: Weird format
2011-03-02 08:08Vincent Teachout : Re: Weird format
2011-03-02 08:56Carl Lindner : RE: Weird format
2011-03-02 09:05Grigore Dolghin : RE: Weird format
2011-03-02 12:06Dan Covill : Re: Weird format
2011-03-02 14:05Michael Madigan : Re: Weird format
Back to top
Weird format

Author: Michael Madigan

Posted: 2011-03-02 03:42:56   Link

I'm trying to convert some patient files to foxpro from a Siemen's hospital computer.

They have data type 'C' for character, 'Z' for numeric and 'ZS' which has odd characters in it.

Does anyone know what ZS means and how to convert it? It is supposed to be in currency form, if that helps.

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/809192.84069.qm@web31401.mail.mud.yahoo.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Michael Madigan
Back to top
Re: Weird format

Author: Alan Bourke

Posted: 2011-03-02 04:06:11   Link

Could they be xBase-style picture codes as opposed to a data type? Z

being 'blank if zero' .

--

Alan Bourke

alanpbourke (at) fastmail (dot) fm

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/1299056771.24617.1425323649@webmail.messagingengine.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Alan Bourke
Back to top
Re: Weird format

Author: Michael Madigan

Posted: 2011-03-02 04:47:12   Link

The file is an odd format which I haven't seen before. The patient balance is supposed to be in column 810 for a length of 9 (7 and 2 after decimal)

In that field are weird characters like '}' 'J' and other characters. Is this some packed format? I don't get it.

All the other data so far has been either Z for numeric (which I think is left zero filled) and C for character.

--- On Wed, 3/2/11, Alan Bourke <alanpbourke@fastmail.fm> wrote:

> From: Alan Bourke <alanpbourke@fastmail.fm>

> Subject: Re: Weird format

> To: profox@leafe.com

> Date: Wednesday, March 2, 2011, 4:06 AM

> Could they be xBase-style picture

> codes as opposed to a data type? Z

> being 'blank if zero' .

>

> --

>   Alan Bourke

>   alanpbourke (at) fastmail (dot) fm

>

>

> _______________________________________________

> Post Messages to: ProFox@leafe.com

> Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

> OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

> Searchable Archive: http://leafe.com/archives/search/profox

> This message: http://leafe.com/archives/byMID/profox/1299056771.24617.1425323649@webmail.messagingengine.com

> ** All postings, unless explicitly stated otherwise, are

> the opinions of the author, and do not constitute legal or

> medical advice. This statement is added to the messages for

> those lawyers who are too stupid to see the obvious.

>

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/636630.24478.qm@web31406.mail.mud.yahoo.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Michael Madigan
Back to top
Re: Weird format

Author: Michael Madigan

Posted: 2011-03-02 04:52:05   Link

here's an example

DATASET NAME: DLSMODLL.D2200.COBLIB(FMCTR001) TIME 13:57:42

0 SEQ LVL FIELD NAME FORMAT START LENGTH

291 05 WX-BAL-ACCT-BAL ZS 7 2 810 9

292 05 WX-BAL-PT-BAL ZS 7 2 819 9

293 05 WX-BAL-TOT-INS-BAL ZS 7 2 828 9

294 05 WX-BAL-TOT-PT-PAY-AMT ZS 7 2 837 9

295 05 WX-BAL-TOT-PT-ADJ-AMT ZS 7 2 846 9

296 05 WX-BAL-TOT-ROOM-CHG-AMT ZS 7 2 855 9

297 05 WX-BAL-POSTED-SINCE-XFR-BD ZS 7 2 864 9

298 05 WX-BAL-FINAL-BL-BAL ZS 7 2 873 9

299 05 FILLER C 3 882 3

300 05 WX-BAL-INS-GRP(1) G 885 32

--- On Wed, 3/2/11, Alan Bourke <alanpbourke@fastmail.fm> wrote:

> From: Alan Bourke <alanpbourke@fastmail.fm>

> Subject: Re: Weird format

> To: profox@leafe.com

> Date: Wednesday, March 2, 2011, 4:06 AM

> Could they be xBase-style picture

> codes as opposed to a data type? Z

> being 'blank if zero' .

>

> --

>   Alan Bourke

>   alanpbourke (at) fastmail (dot) fm

>

>

> _______________________________________________

> Post Messages to: ProFox@leafe.com

> Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

> OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

> Searchable Archive: http://leafe.com/archives/search/profox

> This message: http://leafe.com/archives/byMID/profox/1299056771.24617.1425323649@webmail.messagingengine.com

> ** All postings, unless explicitly stated otherwise, are

> the opinions of the author, and do not constitute legal or

> medical advice. This statement is added to the messages for

> those lawyers who are too stupid to see the obvious.

>

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/913127.14254.qm@web31402.mail.mud.yahoo.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Michael Madigan
Back to top
RE: Weird format

Author: Grigore Dolghin

Posted: 2011-03-02 05:22:12   Link

That's cobol. I found some info about the data types here:

http://www.felgall.com/cob1.htm

Have a look. Unfortunatelly I can't be more helpful but hopefully this will

put you on the right track.

> -----Original Message-----

> From: profoxtech-bounces@leafe.com [mailto:profoxtech-

> bounces@leafe.com] On Behalf Of Michael Madigan

> Sent: Wednesday, March 02, 2011 11:47 AM

> To: profoxtech@leafe.com

> Subject: Re: Weird format

>

> The file is an odd format which I haven't seen before. The patient

balance is

> supposed to be in column 810 for a length of 9 (7 and 2 after decimal)

>

> In that field are weird characters like '}' 'J' and other characters. Is

this some

> packed format? I don't get it.

>

> All the other data so far has been either Z for numeric (which I think is

left

> zero filled) and C for character.

>

>

>

>

> --- On Wed, 3/2/11, Alan Bourke <alanpbourke@fastmail.fm> wrote:

>

> > From: Alan Bourke <alanpbourke@fastmail.fm>

> > Subject: Re: Weird format

> > To: profox@leafe.com

> > Date: Wednesday, March 2, 2011, 4:06 AM Could they be xBase-style

> > picture codes as opposed to a data type? Z being 'blank if zero' .

> >

> > --

> >   Alan Bourke

> >   alanpbourke (at) fastmail (dot) fm

> >

> >

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/000001cbd8c3$b2cc58f0$18650ad0$@gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Grigore Dolghin
Back to top
Re: Weird format

Author: Vincent Teachout

Posted: 2011-03-02 08:08:53   Link

Michael Madigan wrote:

> here's an example

>

> DATASET NAME: DLSMODLL.D2200.COBLIB(FMCTR001) TIME 13:57:42

> 0 SEQ LVL FIELD NAME FORMAT START LENGTH

> 291 05 WX-BAL-ACCT-BAL ZS 7 2 810 9

> 292 05 WX-BAL-PT-BAL ZS 7 2 819 9

> 293 05 WX-BAL-TOT-INS-BAL ZS 7 2 828 9

> 294 05 WX-BAL-TOT-PT-PAY-AMT ZS 7 2 837 9

> 295 05 WX-BAL-TOT-PT-ADJ-AMT ZS 7 2 846 9

> 296 05 WX-BAL-TOT-ROOM-CHG-AMT ZS 7 2 855 9

> 297 05 WX-BAL-POSTED-SINCE-XFR-BD ZS 7 2 864 9

> 298 05 WX-BAL-FINAL-BL-BAL ZS 7 2 873 9

> 299 05 FILLER C 3 882 3

> 300 05 WX-BAL-INS-GRP(1) G 885 32

>

Holy Shit! "Zoned Signed" I haven't seen that since college. COBOL, I

believe. (I've tried to forget it) If it is, watch out for record

overlays - same file could have different record layouts.

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/4D6E4165.40003@taconic.net

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Vincent Teachout
Back to top
RE: Weird format

Author: Carl Lindner

Posted: 2011-03-02 08:56:22   Link

I ran across this is download files from a few securities firms.

{ABCDEFGHI represent positive 0 through 9

}JKLMNOPQR represent negative 0 through 9

256K converts to -2562

256B converts to 2562

the last field gives the last digit and the sign of the number

-----Original Message-----

From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf

Of Michael Madigan

Sent: Wednesday, March 02, 2011 4:52 AM

To: ProFox Email List

Subject: Re: Weird format

here's an example

DATASET NAME: DLSMODLL.D2200.COBLIB(FMCTR001)

TIME 13:57:42

0 SEQ LVL FIELD NAME FORMAT START

LENGTH

291 05 WX-BAL-ACCT-BAL ZS 7 2 810

9

292 05 WX-BAL-PT-BAL ZS 7 2 819

9

293 05 WX-BAL-TOT-INS-BAL ZS 7 2 828

9

294 05 WX-BAL-TOT-PT-PAY-AMT ZS 7 2 837

9

295 05 WX-BAL-TOT-PT-ADJ-AMT ZS 7 2 846

9

296 05 WX-BAL-TOT-ROOM-CHG-AMT ZS 7 2 855

9

297 05 WX-BAL-POSTED-SINCE-XFR-BD ZS 7 2 864

9

298 05 WX-BAL-FINAL-BL-BAL ZS 7 2 873

9

299 05 FILLER C 3 882

3

300 05 WX-BAL-INS-GRP(1) G 885

32

--- On Wed, 3/2/11, Alan Bourke <alanpbourke@fastmail.fm> wrote:

> From: Alan Bourke <alanpbourke@fastmail.fm>

> Subject: Re: Weird format

> To: profox@leafe.com

> Date: Wednesday, March 2, 2011, 4:06 AM

> Could they be xBase-style picture

> codes as opposed to a data type? Z

> being 'blank if zero' .

>

> --

>   Alan Bourke

>   alanpbourke (at) fastmail (dot) fm

>

>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/00ff01cbd8e1$9da8aeb0$d8fa0c10$@com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Carl Lindner
Back to top
RE: Weird format

Author: Grigore Dolghin

Posted: 2011-03-02 09:05:11   Link

Now I dare you to do a SELECT on that data set, lol ;)

> -----Original Message-----

> From: profoxtech-bounces@leafe.com [mailto:profoxtech-

> bounces@leafe.com] On Behalf Of Carl Lindner

> Sent: Wednesday, March 02, 2011 3:56 PM

> To: profoxtech@leafe.com

> Subject: RE: Weird format

>

> I ran across this is download files from a few securities firms.

>

> {ABCDEFGHI represent positive 0 through 9 }JKLMNOPQR represent negative

> 0 through 9

>

> 256K converts to -2562

>

> 256B converts to 2562

>

> the last field gives the last digit and the sign of the number

>

>

>

> -----Original Message-----

> From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On

> Behalf Of Michael Madigan

> Sent: Wednesday, March 02, 2011 4:52 AM

> To: ProFox Email List

> Subject: Re: Weird format

>

> here's an example

>

> DATASET NAME: DLSMODLL.D2200.COBLIB(FMCTR001) TIME 13:57:42

> 0 SEQ LVL FIELD NAME FORMAT START

> LENGTH

> 291 05 WX-BAL-ACCT-BAL ZS 7 2 810

> 9

> 292 05 WX-BAL-PT-BAL ZS 7 2 819

> 9

> 293 05 WX-BAL-TOT-INS-BAL ZS 7 2 828

> 9

> 294 05 WX-BAL-TOT-PT-PAY-AMT ZS 7 2 837

> 9

> 295 05 WX-BAL-TOT-PT-ADJ-AMT ZS 7 2 846

> 9

> 296 05 WX-BAL-TOT-ROOM-CHG-AMT ZS 7 2 855

> 9

> 297 05 WX-BAL-POSTED-SINCE-XFR-BD ZS 7 2 864

> 9

> 298 05 WX-BAL-FINAL-BL-BAL ZS 7 2 873

> 9

> 299 05 FILLER C 3 882

> 3

> 300 05 WX-BAL-INS-GRP(1) G 885

> 32

>

> --- On Wed, 3/2/11, Alan Bourke <alanpbourke@fastmail.fm> wrote:

>

> > From: Alan Bourke <alanpbourke@fastmail.fm>

> > Subject: Re: Weird format

> > To: profox@leafe.com

> > Date: Wednesday, March 2, 2011, 4:06 AM Could they be xBase-style

> > picture codes as opposed to a data type? Z being 'blank if zero' .

> >

> > --

> >   Alan Bourke

> >   alanpbourke (at) fastmail (dot) fm

> >

> >

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/000001cbd8e2$d98c7320$8ca55960$@gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Grigore Dolghin
Back to top
Re: Weird format

Author: Dan Covill

Posted: 2011-03-02 12:06:12   Link

On 3/2/2011 5:56 AM, Carl Lindner wrote:

> I ran across this is download files from a few securities firms.

>

> {ABCDEFGHI represent positive 0 through 9

> }JKLMNOPQR represent negative 0 through 9

>

> 256K converts to -2562

>

> 256B converts to 2562

>

> the last field gives the last digit and the sign of the number

>

That's called a "sign overpunch". In the last column, you punch the

digit and also the 12-row if it's positive and the 11-row if negative.

(You are using punched cards, aren't you?)

Nostalgia aside, just retrieve the fields as Character, then run them

through a conversion routine. Pretty easy.

Dan Covill

World's Oldest FoxPro Programmer

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/4D6E7904.2010008@san.rr.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Dan Covill
Back to top
Re: Weird format

Author: Michael Madigan

Posted: 2011-03-02 14:05:06   Link

THANKS SO MUCH FOR EVERYONE'S HELP! I'll take a look at these examples and see if I need to ask any more questions.

Thanks!

--- On Wed, 3/2/11, Dan Covill <dcovill@san.rr.com> wrote:

> From: Dan Covill <dcovill@san.rr.com>

> Subject: Re: Weird format

> To: "ProFox Email List" <profox@leafe.com>

> Date: Wednesday, March 2, 2011, 12:06 PM

> On 3/2/2011 5:56 AM, Carl Lindner

> wrote:

> > I ran across this is download files from a few

> securities firms.

> >

> > {ABCDEFGHI represent positive 0 through 9

> > }JKLMNOPQR represent negative 0 through 9

> >

> > 256K converts to -2562

> >

> > 256B converts to  2562

> >

> > the last field gives the last digit and the sign of

> the number

> >

> That's called a "sign overpunch".  In the last column,

> you punch the

> digit and also the 12-row if it's positive and the 11-row

> if negative.

> (You are using punched cards, aren't you?)

>

> Nostalgia aside, just retrieve the fields as Character,

> then run them

> through a conversion routine.  Pretty easy.

>

> Dan Covill

> World's Oldest FoxPro Programmer

>

>

> _______________________________________________

> Post Messages to: ProFox@leafe.com

> Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

> OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

> Searchable Archive: http://leafe.com/archives/search/profox

> This message: http://leafe.com/archives/byMID/profox/4D6E7904.2010008@san.rr.com

> ** All postings, unless explicitly stated otherwise, are

> the opinions of the author, and do not constitute legal or

> medical advice. This statement is added to the messages for

> those lawyers who are too stupid to see the obvious.

>

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/327271.6262.qm@web31401.mail.mud.yahoo.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Michael Madigan