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

what will happen two jobs have same name are submitted

5 Answers   CTS,


How to read data from Nth member of a physical file containing some X number of members in it? "Provided member names are unknown"

4 Answers  


What is the difference between iter and do?

0 Answers  


suppose one file is used by 100 user and file is locked by 100 user, what are the impact analysis?

1 Answers  


Can anybody tell me that why we use option(*nodebugio)in H- Spec?

3 Answers  






in rpg could u please tell me errors types and meanings like 3030 that ....

1 Answers   EXL, UHG,


A rpg or clp command to find if the file field is defined as a character or numeric field.

1 Answers   IBM,


Suppose we add one field in physical file and this physical file is used by several programs.how do we know which program is using that file? What are the impact analysis.

6 Answers  


Can anybody tell me the setps to create .csv file in IFS folder on AS/400. I also need to know how I can send this .csv file to PC in xls sheet.....?

2 Answers  


How can i keyed a flat file in RPGLE

5 Answers   IBM, Wipro,


How can read PF in reverse order (end to start) in CL pgm..

8 Answers   TCS,


what is the rpg system?

0 Answers   IBM,


Categories