What is SET TO TRUE all about, anyway?

Answers were Sorted based on User's Feedback



What is SET TO TRUE all about, anyway?..

Answer / srivatsa

Set to True is used for 88 level condition data names.

Is This Answer Correct ?    6 Yes 0 No

What is SET TO TRUE all about, anyway?..

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

What is SET TO TRUE all about, anyway?..

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

What is SET TO TRUE all about, anyway?..

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

What is SET TO TRUE all about, anyway?..

Answer / azharuddinsyed

'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

Post New Answer

More COBOL Interview Questions

how to know that the file has 300 records how to acess it?

0 Answers   Hewitt, TCS,


consider two data items 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move

5 Answers   TCS,


can we read in input the file with a variable length ? please , how ..could you help me ?

3 Answers   EDS,


can we use the two 01 level in file discription ?

6 Answers  


how do you reference the variable block file formats from cobol programs

0 Answers  






What is length is cobol?

0 Answers  


period is missing in the cobol program which error we getting

5 Answers   TCS, Tesco,


what is the difference between COBOL2 AND COBOL390?

0 Answers   L&T,


i need a small 3d program using inline and outline.

0 Answers  


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

0 Answers  


I have files that contains both duplicates files(occur more than twice) and non-duplicate files.The file is already sorted by a key.I want to determine those records that are duplicate and will be move to a duplicate file and non- duplicate files to be move to a valid file.thank you.help please

2 Answers  


Program A calls program B. Will the working storage variables declared in program B be initialized every time it is called by program A or will the values be retained until the end of program A?

7 Answers  


Categories