Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Unloading from tape

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Unloading from tape
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    Post subject: Re: Unloading from tape
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    Post subject:
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    Post subject: Unloading from tape
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    Post subject:
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    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 Length of Tape file Mohan Kothakota JCL & VSAM 9 Thu Apr 20, 2017 10:24 pm
No new posts TAPE VERIFY utility?? MrExtraordinare JCL & VSAM 3 Fri Dec 09, 2016 10:57 pm
No new posts stacking files on a tape Pedro JCL & VSAM 7 Wed Aug 17, 2016 11:11 pm
No new posts Reading selected volumes of a multi-v... RickBig JCL & VSAM 6 Wed Jul 13, 2016 7:26 pm
No new posts How to copy Tape dataset to unix main... chaky All Other Mainframe Topics 4 Fri Jul 08, 2016 2:52 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us