1. If a subprogram uses a COPYBOOK that has to be modified, then what are the changes required in the calling and called program after the modification of the same.
2. If the flat file data has to be loaded in an ARRAY without duplicates (means previously it had duplicates but after loading to table duplicates shouldn't be there), then how can we proceed in this situation.
Joined: 24 Jul 2011 Posts: 651 Location: Down on the pig farm
Posted: Sat Jul 06, 2013 12:33 am Post subject:
1 - dependson what is in the copybook and where it is in the program. A copybook can have anything in it as long as what is in it is acceptable to the compiler - comments, executable code, data structures. If it is not a data structure or it is a data structure that is not in the linkage section then you do not have to do anything to any other program - unless that structure is being passed down another level.
2 - should be a separate topic but apart from that I have nothing to add to what DikDude posted. _________________ Regards
but for the second query, if the duplicate removal has to be done in ARRAY, what is the concept. I searched and found the codes most of the times not the theoretical concept. Please help me for the same. _________________ Thanks,
The only reason for a table (an "array") is if you want to do "something" with the duplicates. Count them, for instance. Something.
If nothing else is required of the duplicates, there is no need for a table ("array").
Your SORT product may be able to accomplish your entire task. Even if not, ensure, as DikDude has pointed out, that you process your data in key order otherwise you are heading for a ridiculous waste of resources.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum