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

How I can read and display three fields in the record
format DSPFM1 of the display file,while
one field(using in one file) is NAME which is Key field in
field reference file and another two fields are AGE and ROLL
NO are using another file.

Please send me coding part.

Answer Posted / syam

I am Pasting Code.
FFILE1 IF E K DISK USROPN ->Reading pf
FDSPF CF E WORKSTN USROPN ->dspy file

C OPEN FILE1
C OPEN DSPF
C SETLL FILE1
C READ FILE1 51
C *IN51 DOWEQ *OFF
C WRITE DSPFM1
C READ FILE1 51
C ENDDO
C CLOSE FILE1
C CLOSE DSPF
C RETURN

it will show all the records from file undil file ends.
if you need ILE RPG Free fromat code pls post again your
request

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why do we use readc? What is sflnxtchg?

1194


How to reverse a string using RPG?

1499


define the purpose of the *cat function?

1676


when should I use method get, and when should I use method post in my cgis?

1140


what is the maximum number of subfiles that can specified in a display file ?

1794


can you specify a display file to be used in the following modes input,output, or combined modes ?

1561


what is the use of data structures?

1136


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

1729


how can I start a page in a new window?

1226


what is a join logical file?

1217


How do I remove a flag or check no. or name when a user opens too many sessions?

2208


Why we sometimes use same file name in file and tofile in ovrdbf and sometimes different?

1135


What Is The Error If We Don't Get Login Screen?

1076


which of the following operations does not zero the field flda defined as 4,0?

1188


what are the different types of variables available in cl?

1829