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

how many levels are there in a physical file?

1703


Using %check we are checking monika in mona what is output? What is %SCAN?

1573


What Is Default Data Type (if You Define Decimals '0') In Physical File?

1771


how to declare a constant variable in the freeformat?

1347


how do you know that records are locked?

1859


some special characters I key in my html source members show different on my web pages. Why? How can I solve this?

1031


If i change any file through application after entering data , how to check which file is updated through applications . For call stack we takes esc 3 then we chose 11..But What is answer of below qtn..?

1852


define the purpose of the *bcat function?

1446


What are the mandatory keywords of sub file?

1395


Difference Between Interactive & Batch Job?

1179


what is the use of data structures?

1072


what would be the effect on the field where reverse image, underline and highlight display attributes are active ?

1625


which are the relational operators in rpg?

1070


when are the referential constraints executed?

1049


How to convert a spool file to PDF file in AS400?

1175