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.
Can we call IDCAMS in a COBOL program?
- Robert Sample
- Global Moderator
- Posts: 1903
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Can we call IDCAMS in a COBOL program?
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.
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.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute