Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write the subfile logic program for the given concept. Load
the data to the subfile depends upon the designation where
designation is not a key field?

Answer Posted / amuthavalli

Its better to keep all the designations in Compile time
array.And then compare the Physical file datas with the
array(designation).Then write it into a subfile.

read file1
Dow not %eof
Move designation arr(i)
add 1 to i
read file1
enddo

dow j<=i

Read file2
dow not %eof
If arr(j=designation
write subfile
endif
Read file2
enddo

Add 1 to j
Enddo

This logic will work.Try it out.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the function of rlu ?

1769


how can I give more performance to some selected pages?

1081


how many files can be defined in f specs?

2465


what is a physical file?

1897


Difference Between Skip Before & Space Before?

1275


how do you read data area in an rpg program?

1888


how to define global parameter in ile ?

1259


the maximum number of subfiles that can defined in a rpg program for one display file is ___ .

3355


what is rpg fixed logic cycle?

1267


what are the uses of factor1, factor2 and result field for the rpg operation code parm?

1102


How to Define a Procedure in RPG?

1795


maximum number of subfiles that can be active for a single file is?

1769


How can we change the uppercase to Lowercase in RPG?

1476


can you display a empty subfile?

1279


Difference Between Call & Sbmjob?

1338