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

is there any way I can ease my rpg controls on numeric input fields? How about an input date field?

1120


which are control break logic indicators?

1101


can we use ASCII ,CDUP,SENDPASV commands in SFTP?

3664


what is subfile?

1595


What is the default access path of a file?

1109


How to avoid using indicators in ile ?

1277


which cl command can be used at program execution to redirect the file named in an rpg program?

1204


if we tried to move year part of *iso date into a field of length 3, what will happen ?

1297


is it possible, in the same cgi, to run more than one gethtml or gethtmlifs?

1072


Write a logic program for knowing the repeated number of a vowels in a given program?

3747


where can you specify an indicator in lokup operation?

1816


how may a cgi control duplicate inputs?

1073


how to validate input values in display file ?

1222


Apart from opening of a file do we have any other use of USROPN?

1389


what if my system I runs with system value qccsid 65535?

1047