Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Dynamic File Allocation

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
sinusam

New User


Joined: 06 Jan 2004
Posts: 18

PostPosted: Fri Feb 18, 2005 2:41 pm    Post subject: Dynamic File Allocation
Reply with quote

How can I create/read/update files (both QSAM and VSAM) dynamically through a COBOL program?


The JCL contains a DUMMY DSN, and I want to assign DD name, DSN etc.. and all other parameters of file, at runtime.

How can i manipulate the environment variables for this ?


Regards,
Sinu
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Sat Feb 19, 2005 8:58 am    Post subject:
Reply with quote

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.
Back to top
View user's profile Send private message
sinusam

New User


Joined: 06 Jan 2004
Posts: 18

PostPosted: Tue Feb 22, 2005 10:00 am    Post subject:
Reply with quote

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.

Thanks,
Sinu Sam
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts editting the file by inserting zeros ... pramodrsingh DFSORT/ICETOOL 9 Mon Aug 21, 2017 5:58 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us