consider the fallowing
77 stat pic 9.
88 male value 1,2,3.
88 female value 4 through7.
what will be the value of stat
a) set male to true.
b) set female to true.
Answers were Sorted based on User's Feedback
Answer / nitin nelson
i think that the answer for
a) is 1
b) is 4
only the first values will be taken..
plz check and varify
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / ramu
I Think none of the above was correct. because 77 was
independent level number,can't be associated with any other
level numbers.
Correct me if i am wrong
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / madhu
both the statements cannot be true when 88 level no is
used.so may be the 1st or the second might be true.if male
is set to be true then value of stat is between 1-3 else 4-7
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / kingmanish
Ramu has put me in serious doubt.
Can someone clarify this 77 lvel thing??
Otherwise I think if male is set to true stat will have any
value between 1-3. most probably 3 as it is the last value.
Similarly for female set to true Stat should take value of 7
| Is This Answer Correct ? | 0 Yes | 0 No |
where did you see the information regarding abend codes in jcl?
can we display comp-3 variables. if we want to display what we have to do . give me one example
after udatingg first 110 rows, my job abends. now how do i change my cobol program so that when i restart the Job it will start updating from 111th row ( i.e in next run I di=ont want to update those 110 rows which are already been updated in the first run before job abend)
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(9) VALUE SPACES. 01 WS-VARN REDEFINES WS-VARX PIC 9(9).
Can we move SPACES to numeric field and ZEROES to alphabetic field? If yes what are the way doing this?
What do you understand by psb and acb?
How you can characterize tables in cobol?
what if any ,is the syntex error in the following piece of code 01 B PIC A(7) 02 C PIC 9(4) ........ IF(B NUMERIC) ADD 10 TO C a.the condition in the if statement is wrong b.noting is wrong c.because C is initialised.ADD 10 TO C is wrong d.both B and C shoud have same size.
how many bytes does a s9(12)COMP-4 field occupy?? a.2 b.4 c.8 d.1 ans with reason please
write a program to eliminate duplicate records in a input file and send them to output file.THIS IS IGATE RECENT QUESTIONN.....JUST 1 WEEK BACKKKK...
Write a program to enter and display the names of students in a class using the occurs clause.