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

How to copy or extract, two set of records from a flat-file.


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

New User


Joined: 06 Nov 2008
Posts: 10
Location: Chennai

PostPosted: Tue Nov 11, 2008 11:57 am
Reply with quote

How to copy or extract, two set of records from a flat-file.
For example I have the file with 1000 records.
From that I want to extract 100 to 100 and 500 to 600.
Can we use SKIPREC and STOPAFT in SORT card?
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Tue Nov 11, 2008 12:10 pm
Reply with quote

Hi,
I suggest you to hit a search once before posting.
what you are asking is discussed couple of days back only.
ibmmainframes.com/viewtopic.php?t=35686
Back to top
View user's profile Send private message
SanthamoorthyRajamani

New User


Joined: 06 Nov 2008
Posts: 10
Location: Chennai

PostPosted: Tue Nov 11, 2008 12:51 pm
Reply with quote

The link you gave is to extract one set of record to output file,Actually I want two set of recods in single job step.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Tue Nov 11, 2008 1:00 pm
Reply with quote

Quote:
I have 50 records out of which I want to move from 3rd record to 10 th record and 25th record to 40th record into an output file.

This is the requirement which is answered in the other post. How did it occur to you that this is a single set? From whatever u have posted so far, there's no difference between the two topics other than the record numbers. If you're trying something different, you need to better explain it clearly if possible with examples.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Nov 11, 2008 1:02 pm
Reply with quote

Quote:
the link you gave is to extract one set of record to output file,Actually I want two set of recods in single job step
.
better see an opthalmologist icon_biggrin.gif
Quote:
I have 50 records out of which I want to move from 3rd record to 10 th record and 25th record to 40th record into an output file


apart the numbers 3 to 10 and 25 to 40
the issue looks, from a logic point of view, exactly the same to me, but I might be wrong

and substituting an equality for a range comparison does not look very difficult ,
if You want to do it

but, alas, the desire of being spoon fed, makes people describe things more complicated than they are really

[/quote]
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
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
Search our Forums:

Back to Top