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



Please help me, I have created window subfile,I have created Footer with same lengh and postion of..

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

Please help me, I have created window subfile,I have created Footer with same lengh and postion of..

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

Post New Answer

More RPG400 Interview Questions

Maximum how many files declare in rpgle

3 Answers   TCS,


what do you mean by an input subfile, what are the keywords required?

0 Answers   IBM,


how do u find whether a record is locked or not??

4 Answers   CTS,


What would be the result on writing a data record to a PF file using the "WRITE" opcode after the SETON *ON *INLR statment?

10 Answers  


Why we cannot call a service program? If I add a PEP can i call the service program?

1 Answers   DELL,






i have a file with the values 10, 20, 30, 40, if am setll with the value 25 then readp, so what it will return?

6 Answers   Mind Tree,


what r drawbacks of OPM? Why do we go for ILE RPG?

1 Answers  


list down and describe the sub systems vailable

5 Answers   IBM,


How can we access Interactive job LDA in Batch Job?. and How we can access a file in interactive QTEMP lib in Batch job?.

4 Answers   IBM,


1.what are the ARITHMETIC EXPRESSIONS IN CL PGM? 2.How to PASSING PARAMETER TO CL PGM?

1 Answers   NetCracker,


I have one cl program which calls two rpg programs named a & b. I am loading a run time array in Pgm A and the control comes back to cl pgm. i call pgmb and I want to read the runtime array in pgmb which was loaded in pgma. How it can be acheived. I should not use any intermediate file or dataarea to store the loaded values.

2 Answers  


wat is meant by hidden field , why it is used?

4 Answers   Four soft,


Categories