Anybody know the difference of primary file and full
procedural file
Answers were Sorted based on User's Feedback
Answer / syam
Primary File = Record will be processed in order strarting
to end by rpg program control(open,read,process,close).
User can't change this order.
Full Procedual file = User can control any order by rpg
program opcode. User can change any order by rpg opcode.
| Is This Answer Correct ? | 22 Yes | 2 No |
Answer / sudhir
Full Procedure File...
FFilename++IPEASF.....L.....A.Device+
FELASAV IF E DISK
Primary File..
FVENDOR3 IP E DISK
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / ld123q44
With a primary file the file is processed seqentially record
by record and programs automatically ends when all records
have been read. There can only one primary file in a program.
With full procedural files the programmer determines which
record or a block of records to be read by way of the value
of the key field used. If a program has only full procedural
files, the programmer has to explicitly close the file.
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / pp
can i get syntax/code for both primary file and full procedure file.
| Is This Answer Correct ? | 0 Yes | 2 No |
Have a join logical file with more than one members with different record formats. So how can we read the different members from this file and also how we can read the different record format from the join logical?
Can we used ovrdbf command after the opnqry file if yes then What will be out put of your program?
I have some doubts on subfile----------- -----I wrote a prog on subfile to display the records. Every thing is clear but i defined a field called "opt" as input field in subfile record format from that input field i wish to enter into new screen called "EDIT" which i created it as a separate RCD in display file. i gave opt as 2 for edit just like in WRKMBRPDM screen please telll me the code and how can i code for it in RPG.
I have a PF(ABC)with no key fields. PF(ABC)have 2 fields (cusno and cusname). Please let me know how can i read the cusno = 1150 directly from PF in CL and RPG program(Without creating the LF and without reading the complete file and then compare 1150)
CAN WE READ RECORDS WITHOUT USING SETLL,READ,CHAIN IN RPG?
Let?s consider a variable X of length 20. Move value ?ABC? to it.How to determine how many characters does X have?
1) How to declare a file? 2) How to define a display file? 3) How to monitor error messages in RPG? 4) How to find the attributes for subfiles? and what is the DDS for subfiles?
wat is curser?? and its types???
How we will read call stack?
How do I link an existing logical file to it's Physical File without recompiling?
Please help me, I have created window subfile,I have created Footer with same lengh and postion of window SFL. When I call the pgm, first is shows only Footer and then it shows subfile records.This time Footer is not showsing ..plz hel me how can i do it...? Sameple DDS and RPG: A R WIN1 SFL A*%%TS SD 20090130 165346 MUNSHIJ REL-V4R2M0 5769- PW1 A FLD001 1Y 0B 4 3EDTCDE (Z) A ATFILE R O 4 7REFFLD (QWHFDBAS/ATFILE LIB/LIBF- A ILE) A R WINCTL SFLCTL (WIN1) A*%%TS SD 20090202 123459 MUNSHIJ REL-V4R2M0 5769- PW1 A ALTNAME ('y') A SFLSIZ (0004) A SFLPAG (0004) A WINDOW (FOOTER) A ROLLUP (27) A ROLLDOWN (28) A CF12 (12 'Cancel') A 50 SFLDSP A N51 SFLDSPCTL A 51 SFLCLR A 1 2'Select Option,Press enter' A 2 3'1= Select' A R FOOTER A* A WINDOW(8 31 9 43) A 8 4'F12 = Cancel' A R DUMMY ASSUME A 24 10' ' in RPG: Dow *IN12 = *Off Write Footer Fxfmt WInCTL
I have to change a program. This program is calling a subroutine mor than 100times within it. so will it have any performance issue? if yes than what changes i can make. Thanx for ur valuable answer.