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...

I have file with data as follows
data
1
2
3
4
5
I need to read 1 and 5 ,then 2 and 4 then like..
upto end of file, can any one help on this

Answer Posted / raghav

You can try using pre runtime array and perform lookup operation for the desired result

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

999


what is the procedure and explain about real time scenario.

1930


How to select highest score of each subject or how to select highest income of every month?

1745


What is file identifier where we can use?

1112


what is the difference between do while and do until?

1227


can I touch the array during treatments?

1150


what is file information data structure?

2163


What is ment by record level identifier?

1127


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1988


how do you use commitment control in rpg?

1260


are there any useful c runtime apis that I can call from rpg iv?

1141


What are the types of identifiers?

1004


what is the necessary keyword needed to scroll subfile records?

1136


what is the use of sflnxtchg?

1239


Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.

2502