can we use cl programming to update or delete physical files
Answers were Sorted based on User's Feedback
Answer / uday bagadi
yes we can update data-base file through cl400 simply we write upddta command in cl pgm and give the data -base file name lib name and member name it directly give the update mode of this file.and same as we write deletf command in cl pgm
| Is This Answer Correct ? | 3 Yes | 4 No |
Answer / manish verma
Updation of any file is not possible through CL but if you
want to delete a file u can definately do it by using the
command remove member RMVM
| Is This Answer Correct ? | 5 Yes | 11 No |
In how many ways a session/device error occurs,,, and what is the remedy for it?
Hi friends, Can you give the solution for the below mention simple code.and explain.what is output D CHR1 S 4A INZ('PEN') D CHR2 S 10A INZ('MYGET') D CHR3 S 8A INZ('GOOD') D CHR4 S 22A INZ C MOVEL CHR1 CHR4 C MOVE CHR2 CHR4 C EVAL CHR4=CHR3 C MOVE CHR1 CHR4
How can we find out whether the job is interactive or Batch through RPG program? 2) How can we find out through CL program?
what is the equivalent keyword for CHAIN opcode ??
Assume my file has 100 records and I want to see only first 10 records. Is this possible through lf?
please help me answer to this question what is the difference between the binding and srvpgm in ilerpg?
1) How to declare a file? 2) How to define a display file? 3) How to monitor error messages in RPG? 4) How to find the attributes for subfiles? and what is the DDS for subfiles?
In ProgramB there is a SBMJOB, which is a call to program C .There is also a CALL to program D from B. How would you check the program C has been executed in D?
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
Hi,Please give me complete code with this logic. The question is how to read the records from a file with load an array of size with error condition? (The logic is Z-Add 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN9 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO)please give me complete code with explanation?
What would be the result on writing a data record to a PF file using the "WRITE" opcode after the SETON *ON *INLR statment?
How to get only unique records from a file which contains duplicate data using CPYF command ? Example : FILEA has duplicate records and FILEB is a UNIQUE defined.... and I want to get the data from FILEA to FILEB by eliminating all the duplicate records...