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 / syam
For RPG program use this in PGMB to get program name and
move to Print
I SDS
I *Program PGM
For ILE RPG
D SDS
D PGM *PROC
YOu will get program name in PGM
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
what is the use of sflnxtchg?
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?
how does the rpg element work?
how do I declare a table or array in rpg iv?
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...........
How would display prime numbers using CL program?
How can we override a file during runtime in rpg?
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?
When it is desirable to describe files Internally?
what is the procedure and explain about real time scenario.
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
is this a rpg channel?
what is a rpg?
What is the purpose of record level identifier?
what do you mean by an input subfile, what are the keywords required?