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 

extract 50 records

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
nadh
Intermediate


Joined: 08 Oct 2004
Posts: 192
Topics: 89

PostPosted: Tue May 17, 2005 7:11 am    Post subject: extract 50 records Reply with quote

Hi,

I have a file containing 3 lakhs records. I want to extract from that
1. first 50 records to new file
2. 101 record to 500 record to another new file.

How to do that?

as the input file is having 3 lakh records i'm not able to open it in edit mode.

pls. give me the solution.

Thanks in advance
nadh
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


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

PostPosted: Tue May 17, 2005 7:31 am    Post subject: Reply with quote

Nadh,

Please search before posting. Do not post the same question more than once. I am deleting your duplicate post.

Check this link which explains in detail about splitting records.

http://mvsforums.com/helpboards/viewtopic.php?p=722&highlight=split

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
valeti_sashi
Beginner


Joined: 11 May 2005
Posts: 12
Topics: 7
Location: Chennai, India

PostPosted: Wed May 18, 2005 11:05 am    Post subject: Reply with quote

HI,

You CAN USE IDCAMS ALSO FOR THIS PURPOSE

OBSERVE THE FOLLOWING PIECE OF CODE, I HAD TESTED IT:
Code:

"
000006 //STEP1    EXEC PGM=IDCAMS                               
000007 //SYSPRINT DD SYSOUT=*                                   
000008 //SYSOUT   DD SYSOUT=*                                   
000009 //INDD     DD DSN=INPUT DATSET,     
000013 //OUTDD1   DD DSN=FIRST OUTPUT DATASET, 
000014 //   -------
000018 //OUTDD2   DD DSN=SECOND OUTPUT DATASET, 
000019 //         DISP=(NEW,CATLG,DELETE),                             
000022  //   -------
000024 //SYSIN    DD *                                                 
000025   REPRO INFILE(INDD) OUTFILE(OUTDD1) COUNT(100)                 
000026   REPRO INFILE(INDD) OUTFILE(OUTDD2) SKIP(100) COUNT(400)       
000027 /*                                                               


REGARDS,

VALETI SASHIDHAR CHOWDARY
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
kolusu
Site Admin
Site Admin


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

PostPosted: Wed May 18, 2005 11:08 am    Post subject: Reply with quote

Valeti_sashi,


Please post in lower case. Posting in all caps is shouting. btw even though IDCAMS also serves the purpose remember that you need 2 passes(2 repro statements) of the data.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) 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