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

How to extract selected records


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
peeterparker

New User


Joined: 17 Nov 2006
Posts: 6

PostPosted: Thu Jan 29, 2009 2:08 pm
Reply with quote

Hi,

I want to extract all the records in a file(of length 185) which contain 9 digit numbers starting at any location from 33 to 184. is this possible with any of the SORT utilities? Please help.

Thanks.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jan 29, 2009 9:00 pm
Reply with quote

Hello,

When you have a question, start a new topic for your question rather than posting a reply to some existing topic.

It is best to include the recfm and lrecl as well.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Thu Jan 29, 2009 9:26 pm
Reply with quote

Quote:
which contain 9 digit numbers starting at any location from 33 to 184


This is a bit vague.
Can you tell us more about the records? Is it, say, a comma-delimited file? Is the field always 9 digits? What if there are 10 or more digits in the range? Is it (one of) a pre-defined (set of) numeric strings you want to base the selection on? RECFM and LRECL would also be helpful.

Garry.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Thu Jan 29, 2009 10:01 pm
Reply with quote

peeterparker,

Show an example of your input records (relevant fields only) for the variations you want to handle, and the expected output records. Explain the "rules" for getting from input to output. Give the RECFM and LRECL of the input file. Give the starting position, length and format of each relevant field.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Join multiple records using splice DFSORT/ICETOOL 5
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top