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

how to deleate a VSAM file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top