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 include desired records

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

New User


Joined: 29 Jan 2007
Posts: 33
Location: chennai

PostPosted: Mon Mar 16, 2009 3:41 pm    Post subject:
Reply with quote

Hi,

My I/p File have the below values

aaa13
bbb34
ccc28
ddd23

My O/p file should fave

bbb 3 4
ccc 2 8

That is the sort processing should check ( ( field 5 sub field 4) ) greater than field 4.. If this condition is satisfy then then record should go to o/p file..

Please help me how to do that in dfsort ???
Back to top
View user's profile Send private message

dick scherrer

Site Director


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

PostPosted: Mon Mar 16, 2009 8:17 pm    Post subject:
Reply with quote

Hello,

When you have a question, you should start a new topic for your question rather than post a reply to some exixting topic.

You should do a much better job of explaining what you want to do. . .

You didn't name the fields. What are the lrecl and dsorg for the file?
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


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

PostPosted: Mon Mar 16, 2009 9:11 pm    Post subject:
Reply with quote

Quote:
That is the sort processing should check ( ( field 5 sub field 4) ) greater than field 4.. If this condition is satisfy then then record should go to o/p file.


What do you mean by "field 5 sub field 4"? Do you mean (field5 - field4)?

If so, then why would bbb 3 4 be in your output file, since 4-3 = 1 which is not greater than 4?

Why do you have blanks in your output record that don't appear in your input records?

You need to do a much better job of showing a good example of the records in your input file and what you expect for output, and explaining the "rules" for getting from input to output and how they relate to the example.
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 Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm


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