how a varible can be passed to a subfile...accnt1 contain
data in a data area..ie Daccnt1 uds,Daccnt2 3
overlay(accnt1:1),
DNo 4 overlay(accnt1:4)..we want to transfer this dataarea
value from acnt0001 to a subfile..that means to enter each
record we have to incriment account no,,
i normal window we can do
move accnt1 account_no
eval account_no=accnt1
eval no=no+1
exfmt usr_account
how it possible with Subfile????????.Please do answer?
(Thank you for all your answers dear friends!!)



how a varible can be passed to a subfile...accnt1 contain data in a data area..ie Daccnt1 uds,D..

Answer / ajay

I didn`t get your question clearly but below my comments
help you....

As you want subfile to show incremented account number
and as stated in ur question you are fetching initial value
for account number from dataarea accnt1

do n ( n :- subfile page size)
move accnt1 account_no
eval account_no=accnt1
eval no=no+1
write sfl_format
eval rrn=rrn+1 ( rrn :- this is associated with SFL)
enddo
exfmt sfl_ctlfmt

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More IBM AS400 AllOther Interview Questions

how do you pass parameters in cl?

1 Answers   IBM,


what is the function of cpyf command?

1 Answers   IBM,


What is the difference between keys of a Physical file and the keys of a logical file?

2 Answers   Bank Of America, BoA,


What is the difference between access path and Dynamic select?

1 Answers  


list some of the commonly used commands for debugging?

1 Answers   IBM,






what is the use of data structures?

0 Answers   IBM,


how you will find an error which is not in the first page of the subfile without using rolldown key?

0 Answers   IBM,


what are the different types of data areas?

1 Answers   IBM,


What is the purpose of CHGPF (Change physical file) command?

1 Answers  


is there any way to dynamically merge other html scripts into a given html?

0 Answers   IBM,


explain the difference between defining subfile and message-subfile?

1 Answers   IBM,


Define each of the following operation codes a, b, c, d, e

1 Answers  


Categories