I have a occurs for 100 times but it has executed 101 time
what could be the reason?
Answers were Sorted based on User's Feedback
Answer / niki
Change Compiler ioption NO SSrange to ssrange. But the
Default is NO SSRANGE.
IF U Use Compiler option SSrange, then whenever the
subscript exceeds its declared
number it will give a Eroor.
for example :
A variable is declared like this...
01 field1.
02 field2 pic x(10) occurs 10 times.
Oputput will be
then field2(1) ......field2(10) is allowed when it exceeds
it will give error
ex: field2(11) ----- erro msg will be displayed
| Is This Answer Correct ? | 14 Yes | 0 No |
Answer / babjee talluri
we use compiler option is SSREANGE , it is used to array
boundary checking, by default NOREANGE,
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / arun gopal
Logical error!!.. check the logic to see if the logic which
performs that section is coded properly to exit at the
bondary condition.
| Is This Answer Correct ? | 5 Yes | 2 No |
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What are the divisions in a cobol program?
How to Pass table from a cobol program to another cobol program and how to use that table in called program
I have the file which is having the extension no as records. sample file will look like below. 2310 3410 3256 4350 3781 5408 I need to replace the record which is starting with 3 to 5 (i.e) 3410 to 5410. How can we do it through cobol and cobol-db2 program? I need the possible logic?
If by mistake we MOVE a working storage variable into LINKAGE area. What will happen??
I had 100 records and i want to execute last three records by using cobol programming?what will be coding?
hie everyone.i just completed my b.tech in electronics and joined mainframes course.am i doing right course for my better future?please help me with your suggestions.ill be very thankful to you guys.
why we are using picture clause in the cobol programs?
I have a files containing both duplicate and non-duplicate records.The file is already sorted by a key.I want to determine those records that are duplicate and records that are non-duplicate.If duplicate the record is move to a duplicate file and if non-duplicate that will be move to valid file.thank you
what happens of we dont give time stamp in precompilation process
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
how do you reference the variable block file formats from cobol programs