The PGMA calls PGMB.PGMB generates a report.The report
should contain the called program name(PGMA).How do i get
the called program name in PGMB to print it on the spool
file?(calling program name should NOT be hard coded or
passed as parameter to called program?

Answer Posted / sreedhar reddy

Retrieve Call Stack (QWVRCSTK) API will do it.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to select highest score of each subject or how to select highest income of every month?

1295


How would display prime numbers using CL program?

5678


What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

2519


We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?

768


How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

548






what is the procedure and explain about real time scenario.

1479


What is difference between bind by copy and bind by reference?

1730


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

709


1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.

5405


what is a rpg?

701


What are the types of identifiers?

571


what is kids-rpg?

667


if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.

2197


how do I declare a minor?

716


Interviewer asked me write down DDS for load all subfile .can anybody write dds

1018