Job calling cobol running for long time
Posted: Wed May 04, 2016 10:51 am
Basically my program logic revolves around 4 KSAM files(Index files) out of which 1 file will act as input and getting write/rewrite based on keys matched/unmatched
from other 3 files, will try to explain more below -
Its reading one file and getting the key which will get match with keys of other three, as i said if it matches with that one particular record will be rewritten in
that file and if not while matching with other file it will a new record write in that file.
Like wise it will happen for other 2 files as well and match with that one file to deicde if its write/rewrite of a record.
Initially, I have coded all the three READ scenario and matching logic in one cobol which never ended when i ran job because everytime while going to next read
scenario I have close the file and open it again as EOF file is set at above read, so I tried splitting cobol in to three separate read.
Anyone have suggestion on it, please share.
from other 3 files, will try to explain more below -
Its reading one file and getting the key which will get match with keys of other three, as i said if it matches with that one particular record will be rewritten in
that file and if not while matching with other file it will a new record write in that file.
Like wise it will happen for other 2 files as well and match with that one file to deicde if its write/rewrite of a record.
Initially, I have coded all the three READ scenario and matching logic in one cobol which never ended when i ran job because everytime while going to next read
scenario I have close the file and open it again as EOF file is set at above read, so I tried splitting cobol in to three separate read.
Anyone have suggestion on it, please share.