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 |
How to read a 100 record from a file through cobol?
Write a cobol program making use of the redefine clause.
period is missing in the cobol program which error we getting
What is the size of s9(19)comp3? explain
which is better either static call or dynamic call? and why?
how do you reference the rrds file formats from cobol programs
How do u find the programs calling the given module, without having doing 3.13 on loadlib/source library?
How do u sort the table for Search ALL? Is it only using ASCENDING KEY IS statement in occurs clause? If the data is input in non ascending order, will the ASC KEY IS automatically sort the data? or will it throw compile time error?
How do you reference the fixed block file formats from cobol programs
Write down the divisions of cobol program?
SUPPOSE I HAVE 60 CHARACTERS STING. IN THAT I WANT FIND OUT HOW MANY TIMES 'A'(ASSUME)WILL REPEATED AND I HAVE TO PASS 'E' IN PLACE OF 'A'ALONG THAT STRING.
What is the difference between a binary search and a sequential search?