View previous topic :: :: View next topic
|
Author |
Message |
vicharapusrinu Warnings : 1 New User
Joined: 04 Dec 2006 Posts: 63 Location: Hyderabad
|
|
|
|
can some one help me please on below points?
1. My i/p file is ISAM file and out file is VB file, I have declared like below in my cobol program but, system is treating I/P,O/P file is FB, can you please help me on this
my declaration:-
Code: |
FILE-CONTROL.
SELECT IN-FILE ASSIGN TO DD1
ORGANIZATION IS SEQUENTIAL.
SELECT OUT-FILE ASSIGN TO DD2
ORGANIZATION IS SEQUENTIAL.
DATA DIVISION.
FILE SECTION.
FD IN-FILE
..
..
FD OUT-FILE.
RECORD VARYING FROM 1 TO 9000.
01 OUT-REC. |
Error I am Getting
Code: |
A "RECORDING MODE" of "F" was assumed for file "IN-FILE".
A "RECORDING MODE" of "F" was assumed for file "OUT-FILE". |
|
|
Back to top |
|
 |
|
|
Pandora-Box
Moderator
Joined: 07 Sep 2006 Posts: 1544 Location: Andromeda Galaxy
|
|
|
|
Is that an error or an information?
You would have got the indication
Here I stands for information
And if you wanted to avoid that you need to provide
Code: |
RECORDING MODE IS F |
In FD. |
|
Back to top |
|
 |
Bill Woodger
DFSORT Moderator
Joined: 09 Mar 2011 Posts: 7314
|
|
|
|
If you show code which won't compile and error messages which are incomplete, you make it difficult to offer assistance.
In your ISAM documentation, it should tell you how to define a file to a COBOL program.
For your output VB, I'd guess you have a single fixed-length 01 underneath. Look at the Language Reference and Programming Guide, come back, with full details and information about what you have tried and what problem remains, if you still need to. |
|
Back to top |
|
 |
Anuj Dhawan
Senior Member
Joined: 22 Apr 2006 Posts: 6258 Location: Mumbai, India
|
|
Back to top |
|
 |
dick scherrer
Site Director
Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
|
|
|
|
Hello,
Check on your definition of the output file.
In order to get a variable file, you must program for this. Your RECORD CONTAINS is not enough.
The 2 most common ways (that i know of) is to have multiple Level 01 statements withing the FD of different lengths and/or an 01 that contains one or more OCCURS DEPENDING ON statements. |
|
Back to top |
|
 |
|