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 / harshad

Update LDA with PGMA & retrieve the same in PGMB for
printing.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When it is desirable to describe files Internally?

1186


When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?

507


Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?

1455


write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen

831


what is the difference between do while and do until?

703






do you use message subfiles? What are the necessary keywords required coding a message subfile?

687


give an eg of ACQ-(ACQUIRE),BIT OFF,BIT ON,DEALLOC,DUMP,FEOD,FORCE,MHHZO,MHLZO,MHLLZO,MLHZO,REL,RESET,TESTZ,TESTB,TESTN----GIVE SMALL EXAMPLE TO THE OPCODES...TO UNDERSTAND FUNCTIONING...........

3285


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

1561


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 are the types of identifiers?

570


what do you mean by an input subfile, what are the keywords required?

773


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 use of sflnxtchg?

801


what is *place and *auto keyword in prtf ?plz explain

2724


Explain mdt?

665