Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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

Answer Posted / salil kumar

If you specify the letter ' U ' at column 73-74, you need to be open and close files explicitly in a RPG program.

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 you read data area in an rpg program?


how do handle file exception/error?


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


what is the sequence when using cursor?


is their a difference in cobol400 for the release 5.2 and 6.1 at the as400.


what is join logical file?


what are the different opcodes available in rpg for database access ?


what is the maximum number of files allowed in rpg?


Difference Between Interactive & Batch Job?


What is the as400 called now?


how will you search an array?


what are the different types of variables available in cl?


Hi,Can any body give the code for the below mentioned quetion.?Im trying to get coding in with easily inderstanding.Plese give me the coding for this? 1.How would you achieve this requirement with out using RPG/RPGLE pgm,but by using only CL?Read a database file and display file contents on the screen when enter key pressed the next record should be displayed on screen.When the last record is reached or when F3 key is pressed the program should exit if the file is empty,a message should be displayed indicate that there are no records to display. Database file Name=EMPDBF Fields in EMPDBF to be displayed on screen Employee Number- EMPNUM(5,0) Employee Name- EMPNAM(30,A) Employee Address-EMP ADDR(50 A)


Which command is used to replace CDUP command in FTP IF i WANT TO USE SFTP?


distinguish between terminating a program through seton lr and return?