Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

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.

2613


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

2455


How would display prime numbers using CL program?

6298


how do you use commitment control in rpg?

1262


Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?

2044


Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

1125


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1993


Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?

934


can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com

2389


How to handle duplicate error handling in RPG?

2279


what are the key words you must use when using a subfile?

1159


how do I declare a table or array in rpg iv?

1168


How can we know running job is batch or interactive?

1106


1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?

935


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

1180