How can the user implicitly open and close the files in RPG program ?

Answer Posted / vishwa natri

Enter UC in position 71-72 of F specs.

Use OPEN and CLOSE opcodes in RPG program to open and close files.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do handle file exception/error?

641


define what a data area is along with a brief example of what it may be used for?

950


can you have multiple key lists for a single file ?

974


how can I start a page in a new window?

775


what is the purpose of data structure?

1000






1)In a pf if we delete a record then how to insert a new record at the same place in that pf?? any logic or code? 2)A batch job is taking a lot of time to run,found that it is going into loop and wrapping up so how to skip that loop and process the job without changing the code? 3)In which scenario C D I R comes and C D G F comes in a job? 4)If a job came to error while processing a file how we can know at which record the error hit and how to skip that record and process other records without changing program code?

3057


what is the difference between sflclr and sflinz?

1025


what is sflpag and sflsiz ?

2262


when do you explicitly open files and close files in an rpg program?

1169


How Many Specs Are There In Rpg & Which Are They?

672


how to run other job when one job is active?

596


define the purpose of the %sst function?

923


how do you read changed records backward in subfile?

608


what is maximum number of arrays allowed in rpg?

1173


can a join logical file be updated?

580