Joined: 26 Apr 2004 Posts: 4650 Location: Raleigh, NC, USA
There are a few avenues you can look into. First, you can use the ever-popular BPXWDYN utility to perform dynamic file allocations. Second, you can setup a dynamic TSO environment with the IKJTSOEV and IKJEFTSR utilities. From there, you can use any normal TSO command (ALLOC, DELETE, DEFINE, REPRO, etc.). Third, you can use the ISPF services calls (ISPEXEC or ISPLINK) and perform the same sort of functions. Last, you can always, of course, call IDCAMS anytime for whatever functions you may need. All of these programs are well documented both at ibm.com, on this and other technical forums, and on the internet. I can't say how easy it will be to handle BOTH QSAM and VSAM processing, but it doesn't seem like it would be impossible.
Thanks for the fast reply.. I'm still doing research from your answers..
I am rephrasing my post.
In my (Assembler) program, I get only VSAM DDNAME as a parameter. In that program, the SHOWCB macro is used for getting file attributes. I need a COBOL implementation (or replacement) for the SHOWCB macro.
If have some suggestions in the regard, please provide.