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

Need help to search the amount field in character format


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

New User


Joined: 27 Feb 2008
Posts: 7
Location: India

PostPosted: Wed Dec 17, 2008 5:12 pm
Reply with quote

Hi,

I have a amount field in character format. Need to retrieve all the rows if the amount is greater than 5000.

FB- >80
eg. +121584.32 -> amount field.

Need to write a sort card to retrieve the amount greater than 5000.

Can you please help me.

Thanks.
Back to top
View user's profile Send private message
nelson.pandian

Active User


Joined: 09 Apr 2008
Posts: 133
Location: Phoenix, AZ

PostPosted: Wed Dec 17, 2008 5:58 pm
Reply with quote

Hi Revathi,

Welcome to the forum.

Please provide us some sample input and expected output data. The starting position and the character length of the amount field.
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Wed Dec 17, 2008 10:02 pm
Reply with quote

Revathi Baala,

You can use the SFF format on INCLUDE COND to get the desired results.

Code:

//STEP0100 EXEC PGM=ICEMAN             
//SYSOUT   DD SYSOUT=*                 
//SORTIN   DD *                       
+121584.32  - YES                     
    +23.11  - NO                       
  -5000.22  - NO                       
    +50.33  - NO                       
  +5000.44  - YES                     
  +4999.99  - NO                       
 +15000.99  - YES                     
//SORTOUT  DD SYSOUT=*                 
//SYSIN    DD *                       
  SORT FIELDS=COPY                     
  INCLUDE COND=(1,10,SFF,GT,500000)   
/*
Back to top
View user's profile Send private message
Revathi Baala

New User


Joined: 27 Feb 2008
Posts: 7
Location: India

PostPosted: Thu Dec 18, 2008 11:35 am
Reply with quote

Thanks Kolusu.

I tried with you example. It worked.
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 Populate last day of the Month in MMD... SYNCSORT 2
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
Search our Forums:

Back to Top