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

how to remove the free space from the file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Vijay Shankar

New User


Joined: 24 Oct 2008
Posts: 16
Location: Bangalore

PostPosted: Tue May 26, 2009 12:10 pm
Reply with quote

How to remove the free space from the file which are unused.

My requirement is that i wrote a job which will take the backup of around 50-60 input files using sort and create the same number of output files. but when the input file is empty it will create the empty backup file. so i want to remove the extra space which will taken by the empty file. i can't do it manually to delete all the empty backup file.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue May 26, 2009 12:14 pm
Reply with quote

Why not code the RLSE parameter in the JCL

Have you considered using DFdss as the backup tool, it is specifically de3signed for backups and recovery
Back to top
View user's profile Send private message
Vijay Shankar

New User


Joined: 24 Oct 2008
Posts: 16
Location: Bangalore

PostPosted: Thu May 28, 2009 10:39 am
Reply with quote

Hi ,

I have to take the whole region backup into a tape, that should be

life time retention.

Below is my job, can you please let me know need to give any storage class

=========================
//ADRDSSU1 EXEC PGM=ADRDSSU
//SYSPRINT DD SYSOUT=*
//BACKUP1 DD DSN=UEWDVAE.V823.FINAL.PHASE1.BACKUP,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SILO,VOL=(,,,20),
// DCB=(RECFM=VB,LRECL=32760,BLKSIZE=0)
//SYSIN DD *
DUMP -
DATASET( -
INCLUDE( -
YEWVPGE.** -
)) -
OUTDDNAME(BACKUP1) -
TOL(ENQF) -
SPHERE -
OPT(4) -
SHR
/*
==================================
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu May 28, 2009 11:30 am
Reply with quote

The need to specify a storage class is purely site specific.

You need to talk to your storage management people to get the correct answer.
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top