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

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

3 Answers  


this is rpg3 code W0RTN IFEQ @CN,002 what is the means @CN,002

1 Answers  


Can we journel logical file and access path? Can we use commitment control for non-join L.F?

4 Answers  


Suppose we have 10 records with same name and we are reading using READE,after 4 record i have to use CHAIN what is the output

3 Answers  


Hi, Can anybody give me real sinario for SFLRCDNBR?with example?

2 Answers  






What is ment by record level identifier?

0 Answers  


Suppose my file has 10 fields and I want to make the 2nd field zeros in all records. And assume I have millions of records and I dont want to read each record and update the desired field with 0. Any other way to do this in one step operation?

1 Answers  


Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

0 Answers  


while i am using the dspmsg command on comman line in Mocha am getting error like Not authorized to message queue message my messagequeue Name? can anybody help me how to change my message queue Am anable to see my messages in message queue

1 Answers  


i have 1000 records in pf.what are all the ways to read a particular name records in rpg?? ie.. in pf i have a name called demo appeared around 52 times hw will we read this particular records in rpg/400?.

11 Answers   IBM,


How can you delete a record from a file in RPG without using DELETE oppcode?

2 Answers   UST,


Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?

0 Answers  


Categories