What is SET TO TRUE all about, anyway?
Answers were Sorted based on User's Feedback
Answer / srivatsa
Set to True is used for 88 level condition data names.
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / mahathiaz
In COBOL II the 88 levels can be set rather than moving
their associated values to the related data item.
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / mujib khan
condition name condition is one of the condition statement..
others are
relative,sign,class,compound.
88 level no can be used as condition name
eg:
01 a pic x(1).
88 std pic value 'a' 'b' 'c'.
here in procedure division if we code
set std to true.
means every time it will return a thts the true value.
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / sroul4
in addition to #3
Set to true means the value is of the variable is 1 and 0
if false.
Is This Answer Correct ? | 3 Yes | 0 No |
'SET TO TRUE' is used to set the value of 88 level data items.
Example
-----------
05 ws-paper pic x(1).
88 ws-hindu value 'y'.
88 ws-toi value 'n'.
if set ws-hindu to true, then ws-paper contains value 'y'
This is same as move 'y' to ws-paper
if set ws-toi to true, then ws-paper contains value 'n'
This is same as move 'n' to ws-paper
Please correct me if i am wrong.
Is This Answer Correct ? | 3 Yes | 0 No |
give the examples of strings in cobol
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
In A cobol program , we can use COPY Statement in FILE- SECTION / WORKING-STORAGE SECTION / ENVIRONMENT DIVIION basically what is the difference
Difference between file status codes 02 and 22.... since both are for duplicate key detection.
How to define variable 9(20) in COBOL, because compiler does not allow us to declare variables with Pic 9(18). Can anyone please let me know the answer... I know one answer to this question which is to use Compiler option Arith (Extend) during Compilation. It extends the maximum limit to 9(32)..Just wanted to know if there is any other way to extend this?
what is MSGLEVEL?
When search all is used in cobol program without sorted input data?
6 Answers CGI, Principal Finance,
What COBOL construct is the COBOL II EVALUATE meant to replace?
The hierarchy of the execution of logical operators is (a) NOT AND OR (b) AND OR NOT (c) OR AND NOT (d) OR NOT AND
10 Answers Huawei, IBM, TCS,
where do we use dyanamic call ? and where do we use static call pls give any example pls ?
how can we code index in an array of cobol pgm?
What is amode(24)?