1) Suppose we call a pgm from CL, how come AS400 system
knows whether the called pgm is to be interactive one or
batch one?
2)How many members can exist in a PF?
Answers were Sorted based on User's Feedback
Answer / jherie
1. If you use the CALL command on the CL, it will be
interactive but if you want it to be a batch program you
have to use the SBMJOB command (SBMJOB (CALL PGMNME))
2. The number of members that can exist in a PF depends on
the MAXMBRS parameter value when the file was created. You
can view this value using the DSPFD on the PF. You can also
change its value using CHGPF command.
Is This Answer Correct ? | 11 Yes | 0 No |
Answer / abhishek
Use RTVJOBA and use first 1 byte variable to find, if valus
is 0 job is batch 1 is for interactive.
Number of members parameters need to be set, can be set to
*NOMAX also.
Is This Answer Correct ? | 7 Yes | 1 No |
Answer / babbi
Jiju,
My question is, how come AS400 system knows it not the user?
We can directly understand by looking at command, no need to
use F18.
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / vz
RTVJOBA - cmd can retrieve info about job,if type '0' -
batch job , '1'-interactive:
dcl &jobtype *char 1
rtvjoba type(&jobtype)
if &jobtype *eq '0'
sbmjob...
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / ankur saini
hello friend im ankur "Fresher "
maximum member of a pf can be 32767 and u can set as pas req. by maxmbr when u r going to compile pf source crtpf cmd
2nd one , all job are remain in wrkactjob and system have all details of every cmd and there are seperate subsystem to handle interactice job are handle by Qinter subsystem and batch job Qbatch from there system gets know
i HOPE SOMEONE satsfy with it !!! thank u
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / megha
you can use on the RVTMBRD (file) NBRDTAMBRS(&var)
to get the number of data members on file
Is This Answer Correct ? | 0 Yes | 2 No |
How to debug a batch job when it is in messagewait(mswg) status. I know the steps for batch ebugging, but im confusing with when we submit any job for batch debug we put in held state. So here also do same thing or any other way?
what is the maximum number of files allowed in rpg?
what is *inzsr used for?
How to retrieve data from data area?
What is a Library in AS/400?
What is a Device file?
where will control be passed after the execution of the *pssr subroutine if the factor2 of the endsr is blank ?
What is journaling & Commitment Control?
what are the different types of arrays?
What is the default value for the number of increment for the physical file?
Is it possible to add an keyfield or field to an Physical file without changing its file identifier. Example : - Say I have an existing physical file which is being used in 5 programs. Now I want to add an additional Keyfield or an field to it and I don't want to recompile the programs.
What is the purpose of FRCDTA (Force Data) keyword?