johan


{ City } tauranga
< Country > new zealand
* Profession * technical specialist
User No # 123563
Total Questions Posted # 0
Total Answers Posted # 6

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 4
Users Marked my Answers as Wrong # 1
Questions / { johan }
Questions Answers Category Views Company eMail




Answers / { johan }

Question { 52532 }

What is the difference between PIC 9.99 and 9v99?


Answer

The Pic 9.99 has a definite decimal point and contains 4 bytes, while the Pic 9v99 has a implied or assumed decimal point and contains 3 bytes.

Is This Answer Correct ?    2 Yes 0 No

Question { 7959 }

When is a scope terminator mandatory?


Answer

Implicit and explicit scope terminators are mandatory for the end of each logical statement.

Explicit scope terminators make it more easy to read the flow of the program logic.

Is This Answer Correct ?    0 Yes 0 No


Question { IBM, 10777 }

can we use go to statement inline-perform?


Answer

Yes you can, although that is not good programming practice.

Is This Answer Correct ?    0 Yes 0 No

Question { IBM, 10777 }

can we use go to statement inline-perform?


Answer

Yes you can but that is not good COBOL programming practice at all.

Is This Answer Correct ?    0 Yes 0 No

Question { CTS, 12353 }

is it possible to pass an SQL query inside a jcl which is
inside a cobol program?


Answer

Yes you can, as long as your project manager don't find out about your silly movements :-)

Is This Answer Correct ?    0 Yes 0 No

Question { IBM, 25751 }

1) can we display the index?


Answer

You can't directly display the Index. But you can create a normal numeric field in your working storage and set that to the Index.

Example:

01 WS-TABLE.
05 WS-CUSTOMER PIC X(25) OCCURS 10 INDEXED BY INDEX1.

01 WS-NUMERICS.
05 WS-INDEX-COUNT PIC 9(02) VALUE 0.

SET WS-INDEX-COUNT TO INDEX1.
DISPLAY WS-INDEX-COUNT.

Is This Answer Correct ?    2 Yes 1 No