IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

VSAM allocation in Assembler


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Siddharth4v

New User


Joined: 20 Aug 2008
Posts: 7
Location: India

PostPosted: Wed Aug 20, 2008 4:27 pm
Reply with quote

Hi,
Can somebody help me out on "how to allocate a VSAM file" from an assembler program. I actually want to dynamically create a VSAM file from an application program written in assembler.
I'm only able to get how to read and write to an existing VSAM file. I'm not getting how to allocate a VSAM from an assembler program.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Wed Aug 20, 2008 6:33 pm
Reply with quote

One option is to call program IDCAMS after building the SYSIN data "cards" in your main program. The DFSMS Access Methods Services for Catalogs manual has an Appendix showing a program invoked IDCAMS sample.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Aug 20, 2008 6:39 pm
Reply with quote

Siddharth4v wrote:
Hi,
Can somebody help me out on "how to allocate a VSAM file" from an assembler program. I actually want to dynamically create a VSAM file from an application program written in assembler.
I'm only able to get how to read and write to an existing VSAM file. I'm not getting how to allocate a VSAM from an assembler program.


May I ask the need to build a dynamic VSAM file in flight ?

Have you considered the problems that this may cause for the prod support people who will have no record in their JCL of where the file is created.

I have come across this before and it really is a PUTA for those that have to support the end product.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts CVDA value for RRDS VSAM dataset. CICS 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
Search our Forums:

Back to Top