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 |
WT R TECHNICAL MAINFRAME QUESTION ASKED IIN ANJANASOFTEARE??
What are the situations u have used in ur project for Subcript and Index ? 1.if u use Subscript why not Index,why u choose Subscript only? 2.if u use Index why not Subscript,what abt Displacement?
how to submit a jcl by cobol program. clear me with an example.
how to transfer the file from pc to mainframe??
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
Explain what you understand by passing by value.
What are the different data types in cobol?
I want to remove a duplicates form a given input field using cobol program. please Any one help me out to solve this ... Thanks in Advance.
can any one give good example for cond 88 level number and for renames pls urgent dudes ?
i Want All cobol ERROR codes?
if i am reading a file with some 50000 records and moving to a DB2 table and suddenly the program abends in between, is there anyway i could restart from the exact record at which the job failed once the program restarts.
Suppose a program has the following code. What will be the output? MAIN-PARA. DISPLAY 'MAIN-PARA' PERFORM SECTION-A. STOP RUN. SECTION-A. PARA-A1. DISPLAY 'SECTION A PARA A1'. PARA-A2. DISPLAY 'SECTION A PARA A2'.