Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Extract Record using range of Data

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
scorp_rahul23

New User


Joined: 06 May 2008
Posts: 95
Location: Delhi

PostPosted: Wed Nov 15, 2017 11:54 pm    Post subject: Extract Record using range of Data
Reply with quote

My Input File is FB=80 Bytes, record layout is like below.

Code:


2017-10-152017-15-11-116103333345...
2017-10-152017-15-11-116103333346...
2017-10-152017-15-11-116103333349...
2017-10-152017-15-11-116103333348...
2017-10-152017-15-11-116103333350...
2017-10-152017-15-11-116103333355...


I want to write sort card to sort above file using the position starting from 24 bytes and 10 bytes length [For Eg in First Record this field will be 6103333345]

I want output file to have record which fall under range
[6103333348 to 6103333390]

So using this range my output file should be

Code:


2017-10-152017-15-11-116103333348...
2017-10-152017-15-11-116103333350...
2017-10-152017-15-11-116103333355...


I am trying in REXX but I am looking for suggestion if this is feasible to do in SORT

Thanks a lot for your assistance
Back to top
View user's profile Send private message

sergeyken

Active User


Joined: 29 Apr 2008
Posts: 340
Location: Maryland

PostPosted: Thu Nov 16, 2017 12:36 am    Post subject:
Reply with quote

Code:
 INCLUDE COND=(24,10,CH,GE,C'6103333348',
           AND,24,10,CH,LE,C'6103333390')
 SORT FIELDS=(24,10,CH,A)
 END


P.S.
Advised first to search the Beginners Forum, and RTFM
Back to top
View user's profile Send private message
scorp_rahul23

New User


Joined: 06 May 2008
Posts: 95
Location: Delhi

PostPosted: Thu Nov 16, 2017 1:32 am    Post subject: Reply to: Extract Record using range of Data
Reply with quote

Thanks a lot for your suggestion, this is awesome
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2060
Location: UK

PostPosted: Thu Nov 16, 2017 3:14 pm    Post subject:
Reply with quote

This is basic DFSort and has been around for decades.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JCL to send email along with formated... wik123 JCL & VSAM 5 Thu Aug 09, 2018 9:48 am
No new posts Send data from a CICS TS program to M... spiThingy CICS 2 Wed Aug 08, 2018 8:58 am
This topic is locked: you cannot edit posts or make replies. Data Sets are files. Please stop str... jasorn JCL & VSAM 11 Wed Aug 08, 2018 1:55 am
No new posts Add Comma to each record until find t... naveensrimf DFSORT/ICETOOL 6 Sat Jul 28, 2018 12:25 am
No new posts Need Help to Create 4 Output Records ... satish.ms10 DFSORT/ICETOOL 5 Thu Jul 19, 2018 1:55 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us