Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to copy or extract, two set of records from a flat-file.
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    Post subject:
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.
http://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    Post subject: Reply to: How to copy or extract, two set of records from a
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: 2276
Location: @my desk

PostPosted: Tue Nov 11, 2008 1:00 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Tue Nov 11, 2008 1:02 pm    Post subject: Reply to: How to copy or extract, two set of records from a
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    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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 11 Tue May 16, 2017 2:20 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us