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

Sorting Records based on condition in VB


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

New User


Joined: 28 Dec 2010
Posts: 25
Location: Chennai

PostPosted: Fri Apr 29, 2011 5:46 pm
Reply with quote

Hi

Input File type : VB

Input file:
Code:
"ADDB",1.098116730,"RT","G0","","31/03/2011"
"ADDB",1.095470230,"RT","J0","","31/03/2011"
"ADDB",1.096310910,"WM","G0","","31/03/2011"
"ADDB",1.097333470,"WM","J0","","31/03/2011"
"ADDB",1.094990410,"WM","N0","","31/03/2011"
"AED",3.672700000,"RT","G0","","31/03/2011" 
"AED",3.672700000,"RT","J0","","31/03/2011" 
"AED",3.673150000,"WM","G0","","31/03/2011" 
"AED",3.673150000,"RT","G0","","31/03/2011" 
"AED",3.673150000,"WM","J0","","31/03/2011" 
"AED",3.672700000,"WM","N0","","31/03/2011" 


Output file needed in FB :
Code:

"ADDB",1.098116730,"RT","G0","","31/03/2011"
"AED",3.672700000,"RT","G0","","31/03/2011" 
"AED",3.673150000,"RT","G0","","31/03/2011" 


I need the records which has "RT","G0" in it.
Since its position varies i could not use OMIT/INCLUDE COND.


Can any one let me know if this can be done in any other way?


Thanks
Madan
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: Fri Apr 29, 2011 8:59 pm
Reply with quote

Quote:
Since its position varies i could not use OMIT/INCLUDE COND


Not true. You can use the SS function of INCLUDE/OMIT like this:

Code:

  OPTION COPY,VLSCMP                       
  INCLUDE COND=(5,50,SS,EQ,C'"RT","G0"')   
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 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
This topic is locked: you cannot edit posts or make replies. Automation need help in sorting the data DFSORT/ICETOOL 38
Search our Forums:

Back to Top