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
Answer Posted / 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 View All Answers
during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.
How would display prime numbers using CL program?
When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?
How Chain operation copies the record's data to the input buffer for the program?
thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400
what is the procedure and explain about real time scenario.
What is file identifier where we can use?
write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen
how does the rpg element work?
What is the difference between copybooks and subprocedures in as400?
is this a rpg channel?
what is data area and how it is used in rpg program ?
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
What is a record lock error?
How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...