Page 1 of 1

Access VB and FB files with same File Defination

PostPosted: Fri Jan 25, 2013 8:16 pm
by nikesh_rai
Hi,

is it possible to use same file definition in COBOL for VB and FB files.. by using Recording modes.. i don't want to use JCL Sort.. its a simple requirement where i need to call a COBOL module for three different files, 1 of them would be FB and rest of them will be VB..

If there is such possibility, i have to use a single COBOL module.. otherwise i need to create a another COBOL module.. can you please suggest..

Re: Access VB and FB files with same File Defination

PostPosted: Fri Jan 25, 2013 9:36 pm
by Robert Sample
RECORDING MODE is specified when you COMPILE a program. When you EXECUTE the program, this compile could be seconds ... minutes ... hours ... days ... months ... years in the past. Information set at compile time (such as RECORDING MODE) cannot be changed at execution time. Hence, what you want to do cannot be done in COBOL and you will need another program.

Re: Access VB and FB files with same File Defination

PostPosted: Fri Jan 25, 2013 10:33 pm
by dick scherrer
Hello,

Why not mak the change(s) to have all 3 the same? This is a rather poor design approach and will cause wasted time everywhere used.