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

If a customer should not be processed more than once


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
subramanianup
Warnings : 1

New User


Joined: 18 May 2005
Posts: 46
Location: Bangalore, INDIA

PostPosted: Thu Feb 02, 2006 12:42 pm
Reply with quote

In the input customer numbers are duplicates, if a customer should not be processed more than once, what are the different ways to achieve this?
Back to top
View user's profile Send private message
gowtham_1982
Warnings : 1

Active User


Joined: 02 Dec 2005
Posts: 109

PostPosted: Thu Feb 02, 2006 12:53 pm
Reply with quote

subramanianup wrote:
In the input customer numbers are duplicates, if a customer should not be processed more than once, what are the different ways to achieve this?



first you sort your file(i suppose you use them). this will get all the customers in ascending or descending order of their nos.

do a perform loop. read the customer no to a local variable.
get a check for every time. if there are not similar,

do the process.
else
skip the process.


hope this helps you. there can be better logic for this too.
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Thu Feb 02, 2006 1:12 pm
Reply with quote

Hi,

Quote:
first you sort your file(i suppose you use them). this will get all the customers in ascending or descending order of their nos.

do a perform loop. read the customer no to a local variable.
get a check for every time. if there are not similar,


In Sort only we can remove duplicate customer number icon_lol.gif

Hope this helps

Regards
Rupesh
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Regarding mroe data to be processed i... DB2 3
No new posts Last Processed Record in Vsam File JCL & VSAM 1
No new posts DFHSM: message - FUNCTION NOT PROCESS... JCL & VSAM 3
No new posts How to check if the file is already p... JCL & VSAM 11
No new posts Get 1st N rows of every customer DB2 15
Search our Forums:

Back to Top