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
Answers were Sorted based on User's Feedback
Answer / syam
Include OVERLAY Record Level Keyward in CLT record.
A R WINCTL SFLCTL
A OVERLAY
Always give SFLSIZ(5) and SFLPAG(4) means SFLSIZ Greater
than SFLPAG.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / cagatay azkin
Once you make sure File size is greater (1 greater is
perfect), also make sure footer record format doesn't
overwrite the sfl. If it's the case and you don't have
spece, decrese size and page by one. Also make sure that
overlay is set "Y"
| Is This Answer Correct ? | 1 Yes | 0 No |
1.Write code to read the records from a file and load an array of size 99? Make sure that you take care of all the error conditions?
In a particular program one file is used where override command is applied to a file, now this program calls another program where we want to use the same file but without override.How it can be done?
can anybody explain significance of *loval setll with example code????
do you use message subfiles? What are the necessary keywords required coding a message subfile?
what is the necessary command needed before OPNQRYF and why?
Suppose in CL we reach at end of file and again we have to reach from 1 record
in rpg could u please tell me errors types and meanings like 3030 that ....
Q1.How to read the Array? Q2.How to copy the content of one Array to another Array?
how to retrieve particular field records from a physical file,say i have a physical file called 'employee' in it i have to retrieve the records of a field 'admin' present in pf 'employee' using rpg,but i should not use logical file or openquery file.
how to run only 10 modules of existing N modules in service program in RPGILE ?
How to set on/off a group of indicators in a single statement?
how can I tell when to replace the array?