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 many maximum spaces could be given in o specs?

821


what is a keyed physical file?

1368


during input operation which indicator position is seton if there is a record lock?

1252


define the rcvf command?

1318


What is dynslt?

981


Why we are not able to perform insert delete and update operation in Join logical file?

1191


when are the unique constraints executed?

857


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)

1966


What is the difference between crtdupobj and copyf?

919


what does opcode post do ?

1406


what is the difference between normal upddta to pf and updating using dfu program?

1042


What is the as400 called now?

758


How can we arrange duplicate records in a file?

802


how you get the relative record in a subfile in which cursor is located?

834


how to develop some simple graphs (bar charts) using just html?

841