Page 1 of 1

cobol

PostPosted: Sat Oct 02, 2010 1:47 am
by kandellisuresh
using occurs clause we can specify the no of occurenses
but how can we declare in runtime

Re: cobol

PostPosted: Sat Oct 02, 2010 3:21 am
by Robert Sample
OCCURS DEPENDING ON allows the number of occurrences to vary at run time, however you must specify the maximum number allowed at compile time. There is no way in COBOL to define the maximum number of occurrences at run time -- this must be provided at compile time.