MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need to copy last 3000 recs of one huge file into a new file

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
Anilkumar_Manepalli
Beginner


Joined: 31 Jan 2006
Posts: 3
Topics: 1
Location: Hyderabad

PostPosted: Thu Feb 16, 2006 11:52 am    Post subject: Need to copy last 3000 recs of one huge file into a new file Reply with quote

Hi,

I have one dataset which contains 7 lakh records. In order to load this dataset into oracle, I started downloading this dataset to my desktop using the File transfer option of TSO COMMAND. (Because I dont any other options like FTP or doing NDM to unix option available, I opted for this approach.)

The problem is after the downloading process started, the process was abruptly closed after it downloaded some 696070 records. Now cannot start the whole process again as it may around 4 hrs again.

Now how can I copy those last 3930 records into another file, so that I can download only those records? and I will append them to the already downloaded file.

Please help out in this case.

Thanks for reading.
_________________
Regards,
Anil Kumar Manepalli
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Feb 16, 2006 12:09 pm    Post subject: Reply with quote

Anilkumar_Manepalli,

Try this


Code:

//STEP0100 EXEC PGM=SORT         
//SYSOUT   DD SYSOUT=*           
//SORTIN   DD DSN=YOUR INPUT FILE,
//            DISP=SHR
//SORTOUT  DD DSN=YOUR LAST 3930 RECORDS FILE,
//            DISP=(NEW,CATLG,DELETE),
//            UNIT=SYSDA,
//            SPACE=(CYL,(10,10),RLSE)
//SYSIN    DD *                 
  SORT FIELDS=COPY               
  OUTFIL STARTREC=696071 
/*                               


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anilkumar_Manepalli
Beginner


Joined: 31 Jan 2006
Posts: 3
Topics: 1
Location: Hyderabad

PostPosted: Thu Feb 16, 2006 12:20 pm    Post subject: Reply with quote

Hi Kolusu,

Thanks for the help. It worked.
_________________
Regards,
Anil Kumar Manepalli
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group