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 |
What is the difference between CONTINUE & NEXT SENTENCE ?
how to display date in reverse order if the pic clause of the is numeric suppose date is 09032010 ==> need to print in 20100309 (pic clause is numeric)
Can we change the password using ALTER? anyone tried and changed?
explain sorting techniques in cobol program?
what will happen if i give program name and member name as different? program runs successful or w'll abend?
Name the divisions, which are available in a cobol program?
How to print 10 to 1 if the input have only 10 digit number?
What is link edit in cobol?
How do you do in-line PERFORM?
Read a flat file and write last but one (I have n records in a file I have to write n-1th) record in another flat file. Could you please provide me the code in COBOL?
what is the difference b/w level no.01 & level no.77?
What is the mode in which you will OPEN a file for writing?