fixed length format file

J

John

I am attempting to import a large fixed length file, whose origin, I
believe, is Pervasive SQL2000. I am having trouble because Access (XP) says
the record is too long, but I wonder whether it is missing some sort of
CR/LF kind of thing. I can import it into Excel, although I suspect the
field breaks are probably wrong.

My real question is this: I have been give a text file layout which is
supposed to correspond to this file, but I confess that I do not understand
some of the data. Below is an example:


FD SA-HDR-FIL

DATA RECORDS IS SA-HDR-REC.

01 SA-HDR-REC.
03 SA-HDR-ALT-KEY-1.
05 SA-HDR-ALT-KEY-DATA-UPPER PIC X(25).
05 SA-HDR-KEY.
07 SA-HDR-STR-NO PIC 9(3).
07 SA-HDR-TICKET-NO PIC 9(6).
07 SA-HDR-SEQ-NO PIC 9(3).


Can someone clear up with the PIC means? Also what the number (or X in
some cases) after it means?, and finally, what the number in parenthesis
means?

Thanks,

John
 
Y

Yuan Shao

Hi John,

Thanks for your post. According to your description, I understand that you
want to understand the meaning of PIC clause in the statements you
provided. If I have misunderstood, please feel free to le me know.

Based on my experience, it is mostly possible that these statements are
COBOL statements. So far as I know, COBOL is a flexible, free-format
language that has very few internal constraints. It does not enforce any
particular structural method, instead it allows the individual to adopt
whatever structure their particular level of mentality can imagine. PIC
X(25) is the picture clause in COBOL.

For more information regarding COBOL, please refer to the following article.
COBOL Programming Standards
http://www.tonymarston.net/cobol/cobolstandards.html

Also, due to the nature of this issue, I think the current news group
(Microsoft Access) is not the best one for this problem. Thanks for your
understanding.

Best wishes,

Michael Shao
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Y

Yuan Shao

Hi John,

Thanks for your post. According to your description, I understand that you
want to understand the meaning of PIC clause in the statements you
provided. If I have misunderstood, please feel free to le me know.

Based on my experience, it is mostly possible that these statements are
COBOL statements. So far as I know, COBOL is a flexible, free-format
language that has very few internal constraints. It does not enforce any
particular structural method, instead it allows the individual to adopt
whatever structure their particular level of mentality can imagine. PIC
X(25) is the picture clause in COBOL.

For more information regarding COBOL, please refer to the following article.
COBOL Programming Standards
http://www.tonymarston.net/cobol/cobolstandards.html

Also, due to the nature of this issue, I think the current news group
(Microsoft Access) is not the best one for this problem. Thanks for your
understanding.

Best wishes,

Michael Shao
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

This document contains references to a third party World Wide Web site.
Microsoft is providing this information as a convenience to you. Microsoft
does not control these sites and has not tested any software or information
found on these sites; therefore, Microsoft cannot make any representations
regarding the quality, safety, or suitability of any software or
information found there. There are inherent dangers in the use of any
software found on the Internet, and Microsoft cautions you to make sure
that you completely understand the risk before retrieving any software from
the Internet.
 
J

John

Thank you for your information. The link you provided looks as though it
should help me with the file structure.

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top