View previous topic :: View next topic
|
Author |
Message |
vasif
New User
Joined: 11 Feb 2008 Posts: 35 Location: Chennai
|
|
|
|
I want to read a VBA file which has a length 137 bytes. But there is no particular record layout for that file. In what way thru cobol/dfsort could i read this file. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
In COBOL, ASSIGN the file, place the FD in the DATA DIVISION, then in the PROCEDURE DIVISION OPEN the file, READ it, then CLOSE it -- just like any other file. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
COBOL doesn't need a record layout to read a file; it's just that it's more convenient to reference the fields of the record using one. You can create your own layout defining only the fields you need to access. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Might this be a "report"?
If you READ the vb file INTO a 137-byte working-storage field, i suspect it will be more easily usable. |
|
Back to top |
|
|
|