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

Unloading from tape


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

New User


Joined: 06 Jul 2005
Posts: 21
Location: chennai

PostPosted: Mon Oct 24, 2005 3:10 pm
Reply with quote

Hi all,

I wanna download last few records from a dataset that resides on tape.In general, IEBGENER utility can be used to download datasets from tape on to DASD.But then, i want to skip first few records and tehn download only the last ,say 500 records from the dataset on tape.Is it possible through any control statements or thru any other utilty.

Thanks & Regards,
kousalya
Back to top
View user's profile Send private message
spanda

New User


Joined: 31 Aug 2005
Posts: 48
Location: U.K.

PostPosted: Mon Oct 24, 2005 4:20 pm
Reply with quote

Not sure if you can do what you want through IEBGENER, but you may achieve this via IDCAMS. It certainly helps if you know the number of records (n) you have got on the tape file, so you can skip (n-500) records and keep only the last 500.

REPRO INFILE(INDD) OUTFILE(OUTDD) SKIP(n-500)

INDD is the DD name for the tape file, while OUTDD is the DD name for the output DASD dataset.

Apologies if this reply doesn't help.
Panda.
Back to top
View user's profile Send private message
kousalya26

New User


Joined: 06 Jul 2005
Posts: 21
Location: chennai

PostPosted: Tue Oct 25, 2005 1:00 pm
Reply with quote

Hey thanks, it worked out!
Back to top
View user's profile Send private message
prasanth_thavva

New User


Joined: 28 Jul 2005
Posts: 86
Location: Chennai

PostPosted: Sun Mar 19, 2006 3:05 pm
Reply with quote

hi ,

it can be possible with DFSORT. use SORT FIELDS=COPY ,SKIP REC=50 you have to give this info..in CONTROL CARD.include in your JCL in SYSIN DD DSN=...

Thanks and Regards,
Venkata Prasanth
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Mar 19, 2006 8:12 pm
Reply with quote

Plus, sort (DF or SYNC) is much faster than IDCAMS.
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 Deleting a Tape file JCL & VSAM 14
No new posts Unloading Data from DECIMAL(n,0) Colu... DB2 6
No new posts JCL and TAPE drives: how to maximize ... JCL & VSAM 9
No new posts ADR324E-VOL/DATASET SPECIFIED BY DDNA... JCL & VSAM 6
No new posts Record count of RECFM=U tape file DFSORT/ICETOOL 17
Search our Forums:

Back to Top