Talk About Network

Google




Programming > Cobol Misc > Re: Same Record...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 149 of 183
Post > Topic >>

Re: Same Record Key and FD for multiple VSAM files (of same structure)

by donald tees <donaldtees@[EMAIL PROTECTED] > Sep 23, 2007 at 09:18 AM

dividby0 wrote:
> Hi,
> 
> I'm writing a COBOL program which accepts 5 KSDS files and extract
> data into a single file. All the files are of the same type and have
> same data fields with values from different sources.
> 
> I am able to do this for 1 input file. But I'm having problems with
> the Record Key Clause and FD for 5 files.
> 
> Since the files have same struction I'm using"
> 
> RECORD KEY IS NCB-D100
> 
> How can I do this for 5 files?
> 
> And, I'm using a copybook for the FD:
> 
> FD INP-FIL.
> COPY BCBSECR.
> 
> I want to use the same copybook for all the 5 files.
> 
> Help required.
>
In the assign clause, assign the file to a data name instead of a 
literal.  Then set the first file name, open it, and read it.  When 
done, close the file, change the name to the next, and repeat. etc.

Donald
 




 2 Posts in Topic:
Same Record Key and FD for multiple VSAM files (of same structur
dividby0 <mithhilarora  2007-09-23 03:53:02 
Re: Same Record Key and FD for multiple VSAM files (of same stru
donald tees <donaldtee  2007-09-23 09:18:48 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Tue Jan 6 1:56:51 PST 2009.