Page 1 of 1

Can we initialize a BDAM file, if yes - how?

Posted: Tue Jul 23, 2013 1:54 am
by Subhash Chander
Hi,

I think for writing records into a new BDAM file we have to initialize it, I tried initializing BDAM data set by inserting and deleting records using FILE-AID and executed the program but it fails with SYNAD error.

Can anybody help in knowing how to initialize a BDAM file in general or using FILE-AID?

Re: Can we initialize a BDAM file, if yes - how?

Posted: Tue Jul 23, 2013 5:11 am
by Robert Sample
What language is the program you are attempting to execute? Enterprise COBOL, for example, does not support the use of BDAM files in any way and you MUST use VSAM RRDS instead of BDAM if you are writing Enterprise COBOL code. I believe you can still access BDAM files in HLASM, but I would have to research that in the manual since I am not sure about it.

Re: Can we initialize a BDAM file, if yes - how?

Posted: Tue Aug 13, 2013 4:24 pm
by Subhash Chander
I was thinking to use COBOL and did a research and came to know that you're correct. Apart from HLASM, is there no other language to support BDAM?

Re: Can we initialize a BDAM file, if yes - how?

Posted: Tue Aug 13, 2013 5:43 pm
by Robert Sample
I believe Enterprise PL/I regional files are BDAM but I cannot test that at this time.