can u execute a proc from another proc?

Answer Posted / kameswari

hello,
Yes we can call 1 procedure from another procedure.
Here is my code.

public void res()
{

MessageBox.Show(res2().ToString());
}

public string res2()
{
str = "phani";
return str;
}

Form1_Load()
{
res();
}

Is This Answer Correct ?    0 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is use of restart and how to use it?

771


I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.

728


Explain how can the attributes of one sms dataset be copied to another dataset?

705


WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375

1039


what is JCL?

698






how JCL works?

796


What do you know about jcl?

649


Can we use DISP=SHR in output file in JCL

953


WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 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

854


Is automatic restart possible in jcl? If yes, how?

657


What parameters can be used to limit the number of records written to a sysout dataset?

750


For what purpose steplib and joblib are used ?

688


what EXEC statement is and what is the syntax of EXEC statement used in JCL?

631


How do you submit a job for execution?

640


What is condition checking in jcl? Is this possible?

626