We have 3 programms A,B,C.In the middle of the program A
the controls goes to program B and in the middle of the
program B control wants to go program C,after completion of
program C again control comes to program B and again after
completion of program B control comes to program A.How the
process will takes and what are the controls we use for
that process.If it is possible anybody of you explain with
example?
Answers were Sorted based on User's Feedback
Answer / chakri
Deepak if u want to make control go to program B from
Program A we can do it by using a CALL statement and same
way we can make control go to Program C from Program B . In
Program C we have to code GOBACK instead of STOP RUN so
taht control will return to Program B after the completion
of Program B and similarly we have to code GOBACK in
Program B so that control wil return to Program A but in
Program A we have to code STOP RUN as last statement.
I think its clear for u
Is This Answer Correct ? | 17 Yes | 0 No |
Answer / shailendra
Hi the first ans will work when you are working with cics
and second one will work when jcl + cobol.
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / rockish
XCTL may not work.. XCTL is used to transfer the control and
the control will not be returned back..
Is This Answer Correct ? | 6 Yes | 1 No |
if it is a fully cobol program we can use the following
statement to pass the control to another program, which
will return the control to the next line of calling program.
A -> B -> C
In program A: call 'B'.
In program B: call 'C'.
EXIT PROGRAM.(instead of STOP RUN)
In program C: EXIT PROGRAM.(instead of STOP RUN).
if it is CICS program, we have to user LINK for getting the
control back to the calling program.
Is This Answer Correct ? | 2 Yes | 1 No |
how to convert vsam table into DB2 table?
study the following 01 A PIC 99V0 VALUE 5 01 B PIC 9V9 VALUE 6 01 C PIC 99V9 VALUE 2.5 01 D PIC 99 VALUE 3 COMPUTE A ROUNDED B C = A+B*C/D ON SIZE ERROR PERFORM PRINT-ERROR the comments of A.B.C after execution of the above statement are a.A=10 B=0 C=10 b.A=10 B=9.9 C=9.9 c.A=10 B=0 C=9.9 d.A=10 B=6 C=10
db2 variable decimal(15,2) what is the equalent size of cobol variable
Consider the following: 77 A PIC 9(10) 77 B PIC 9(10) 77 C PIC 9(19) MULTIPLY AB BY B GIVING C Which of the following is true ? (a) The execution of the above may result in size error. (b) The execution of the above will result in size error. (c) The definition of C is invalid resulting in compilation error. (d) No error will be thee and the program would proceed correctly.
What is difference between COBOL and VS COBOL II?.
C1 C2 C3 are three conditions whose TRUTH values are as folloes. C1-TRUE C2-FALSE C3-TRUE A,B,C are defined as given below A:C1 AND(NOT C2) OR C3 B.(NOT C1) OR (NOT C2 AND NOT C3) C.(C1 OR C2)AND C3 D.C1 AND C2 OR C3 given the above information which of the following statements are valid? a.only A,B and C are TRUE b.only A,C and D are TRUE c.A,B,C and D are TRUE d.only C and D are TRUE
soc-7 is a bad data,invalid data. when ever we are moving the alphabets in the position of numeric then we got this abend. so my question is if o1 ws-data pic 9(1) value passing the alphabet some x. then we got soc-7 or not? i want clarification ?
What rules are followed by the search verb.
Have you used comp and comp-3 in your project? And how?
What is the meaning of 'TALLING' verb in cobol?
In an EVALUTE statement is the order of the WHEN clauses significant?
What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?