What is SET TO TRUE all about, anyway?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

If you are current on the owner of a set, what is the difference between obtain next and obtain first?

632


Write a program to enter and display the names of students in a class using the occurs clause.

642


Give some examples of command terminators?

749


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

705


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5049






What is the difference between comp and comp-3 usage?

669


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2045


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2716


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

666


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

1946


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

1862


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

806


What is amode(24)?

678


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

619


Can a Search can be done on a table with or without Index?

796