What is primary file? How many primary file can be declared
in a RPG program?
Answers were Sorted based on User's Feedback
Answer / samul
When Primary file is declare ,it will process and read as
per the RPG logic lcycle.
We can declare only one primary file in program.
Cheers ....
| Is This Answer Correct ? | 29 Yes | 2 No |
Answer / kar4u
Primary file concept comes from JOIN LOGICAL FILE..
In JOIN LOGICAL FILE in JFILE(pf1,pf2,pf3)
in that pf list which file you write FIRST is called Primary file..
we can use only one PRIMARY FILE in rpg program
| Is This Answer Correct ? | 2 Yes | 3 No |
Answer / chinnu
We can use only one Primary File in a program.
When a primary file is declared, it wont follw RPG Logic
Cycle.It will be a stepwise execution from beginning to end.
| Is This Answer Correct ? | 4 Yes | 7 No |
Hi.can any body give me the code for this quesiton please.Because i dont have to try to enter the code in to the AS/400 server.Please can anybody give the answer for this question with complete code? A smple RPLE pgm which accepts the starting number and ending number as parameter.It then has to count all the odd numbers b/w the accepted range of numbers and display the results/ Ex:if the input parameters are 11 and 30 the result should be 10(11,13,15,17,19,21,23,25,27,29) Please explain and give me the complete code?
whare we can use IN AND OUT AND UNLCK opcodes?please can any body tell me in real time senario with example
does we use case stmt in cl
which single rpg opcode performs both setll and reade?
what is the use of CPYFRMQRYF?
What is the purpose of STRCMTCTL command?
What is the purpose of USROPN keyword?
what are indicators?
what is join logical file?
how will you display a particular page in subfile ?
Where would you use Override Data Base File?
i am using non join multiple format my 3 database file is like that pf97 R REC ENAME ETENNO ESTATUS K ENAME pf98 R REC1 ENAME ESAL K ENAME PF99 R REC3 ENAME CRDCARD EID K EID & MY NON JOIN LOGICAL FILE IS ALSO SAME EXCEPT RECORD NAMES BEFORE I TRIED WITH 2 FILES SO ITS SAYS ERROR I.E.(Key field attributes must be same as for previous formats. ) SO I CHANGED KEYFIELD ACCORDING TO PF SO ITS WORKING BUT AFTER ADDING 3 FILES ITS SAYING SAME ERROR . I DONT KNOW I NEW IN AS400 PLLZ HELP ME I HAVE ONE MORE QUE. CANT BE USE DIFFERENT KEYFIELD (NOT ACCORDING TO PF) IN NON JOIN LOGICAL FILE.