Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

how to deleate a VSAM file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
charu arora

New User


Joined: 30 May 2006
Posts: 13
Location: bangalore

PostPosted: Tue May 30, 2006 4:44 pm    Post subject: how to deleate a VSAM file
Reply with quote

Please tell me how to deleate a VSAM file.Which Utility to use
Back to top
View user's profile Send private message

pbgunasekar

New User


Joined: 28 May 2005
Posts: 26
Location: Chennai

PostPosted: Tue May 30, 2006 5:15 pm    Post subject: Re: how to deleate a VSAM file
Reply with quote

you can delete using IDCAMS utility
Back to top
View user's profile Send private message
vijayaselvam

New User


Joined: 29 May 2006
Posts: 6

PostPosted: Tue May 30, 2006 6:17 pm    Post subject: how to delete VSAM FILE?
Reply with quote

The access method services program IDCAMS allows the user to determine and manage the VSAM environment. Some of the services which are performed through the IDCAMS program include:

* Defining catalogs
* Defining files,catalogs...
* Deleting files,catalogs...
* Listing files
* Converting files to VSAM
* Creating backup files

Once again, the IDCAMS program is executed through the statement:
// EXEC IDCAMS,SIZE=AUTO

Notice that the size parameter must be included to allow for space required by VSAM in the partition in which it runs.
Through IDCAMS, there are two types of commands which may be utilized. One type of command are the FUNCTIONAL commands which request some file management action to be accomplished. Some of these commands include DEFINE, DELETE, LISTCAT, PRINT,VERIFY and REPRO. The second type of command available under IDCAMS is the MODAL commands. These commands are used to specify options, delimit functional command sequences, and test condition codes. Some of these MODAL commands include IF,THEN,ELSE,DO,END,SET and PARM.

The general structure of a command under IDCAMS is
verb parameters terminator
It is vital that the proper language syntax is utilized in constructing the IDCAMS commands. This syntax is straight forward and the reader is encouraged to grasp the basic syntax requirements before attempting to utilize VSAM. The following points summarize the basic syntax of the language:

Verbs must be separated from the parameters by at least one separator
A separator is a blank or a comment
A comment is any string of characters preceded by /* and followed by */
Commands must lie between column 2 and column 72
To continue a command to the next line a hyphen must be placed before column 73 and it must be the last non-blank character on that line
A terminator indicates the end of the command
A terminator can be a semicolon or simply the absence of the continuation character (the hyphen).
If a semicolon is used as a terminator, all the characters to the right of the semicolon are ignored.
Back to top
View user's profile Send private message
gamarendra

New User


Joined: 12 May 2006
Posts: 13
Location: bangalore

PostPosted: Thu Jun 01, 2006 12:04 am    Post subject: Re: how to deleate a VSAM file
Reply with quote

hi,
here is the sample JCL to delete vsam file "XXXXCSOD.PRODyyyy.Cmmm ".

//Step010 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE -
XXXXCSOD.PRODyyyy.Cmmm -
GENERATIONDATAGROUP -
FORCE -
NOPURGE
/*
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us