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 read a 100 record from a file through cobol?

2 Answers  


Write a cobol program making use of the redefine clause.

0 Answers  


period is missing in the cobol program which error we getting

5 Answers   TCS, Tesco,


What is the size of s9(19)comp3? explain

8 Answers  


which is better either static call or dynamic call? and why?

5 Answers   HCL,






how do you reference the rrds file formats from cobol programs

0 Answers  


How do u find the programs calling the given module, without having doing 3.13 on loadlib/source library?

2 Answers  


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?

1 Answers   CTS,


How do you reference the fixed block file formats from cobol programs

0 Answers  


Write down the divisions of cobol program?

0 Answers  


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.

2 Answers   Wipro,


What is the difference between a binary search and a sequential search?

10 Answers  


Categories