Page 1 of 1

Can we call IDCAMS in a COBOL program?

Posted: Thu Jan 30, 2014 12:47 am
by Shriram
Hi,

How can we call IDCAMS in a COBOL program? And by calling it, can we create a cluster from a COBOL program?

Could someone please guide me in this regard.

Re: Can we call IDCAMS in a COBOL program?

Posted: Thu Jan 30, 2014 8:17 am
by Robert Sample
Yes, you can call IDCAMS by allocating the appropriate DD names and using a COBOL CALL statement. And yes, you can allocate a VSAM cluster in the IDCAMS statements.

HOWEVER, you may yet be surprised since you typically will NOT be able to use that cluster in your COBOL program -- if that is what you are ultimately wanting to do.

Re: Can we call IDCAMS in a COBOL program?

Posted: Sun Jun 15, 2014 10:45 pm
by Shriram
Thanks Robert.