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
 
If a customer should not be processed more than once

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: If a customer should not be processed more than once
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    Post subject: Re: Logigal Thinking
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: 464

PostPosted: Thu Feb 02, 2006 1:12 pm    Post subject: Re: Logigal Thinking
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Last Processed Record in Vsam File sanakiyan.s JCL & VSAM 1 Tue Mar 15, 2016 1:45 pm
No new posts DFHSM: message - FUNCTION NOT PROCESS... pietras65 JCL & VSAM 3 Fri Sep 13, 2013 3:13 pm
No new posts How to check if the file is already p... Robert Sample JCL & VSAM 11 Mon Feb 11, 2013 5:19 pm
No new posts Get 1st N rows of every customer sarangwagh7 DB2 15 Wed Aug 24, 2011 11:52 am
No new posts Pick out customer numbers from a colu... madmartinsonxx DFSORT/ICETOOL 7 Wed Feb 09, 2011 8:37 pm

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