How to declare the more than one file in cl/400.
Answers were Sorted based on User's Feedback
Answer / syam
CL Supports Max 5 Files per porgram in Ver 5 Rel 4 and
above.
PGM
DCLF FILE(File1) OPNID(P1)
DCLF FILE(File2) OPNID(P2)
RCVF OPNID(P1)
RCVF OPNID(P2)
ENDPGM
Is This Answer Correct ? | 53 Yes | 3 No |
Answer / nipun
DCLF with an OPNID keyword to specify a unique id to every file opened in a CL.
Is This Answer Correct ? | 32 Yes | 1 No |
Answer / d
we can declare one file in cl .
but in cle we can declare max 5 files.
Is This Answer Correct ? | 12 Yes | 1 No |
Answer / ermohit007
With OPNID keyword you can declare more than one file in CL
but this facility is available only in CLLE and you can
declare upto 5 files.
Is This Answer Correct ? | 10 Yes | 3 No |
Answer / mathan kumar
DCLF FILE(DSP101) RCDFMT(SCR1)
DCLF FILE(DU) RCDFMT(SCR1) OPNID(OPN)
SNDRCVF RCDFMT(SCR1)
SNDRCVF RCDFMT(SCR1) OPNID(OPN)
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / siva prasad
in cl 400 we cannot dcl more then 1 file
but in clle we can dcl max 5 files by using
open id
syntax
DCLF DIV(FNAME) OPNID(FNNAME)
DCLF DIV(LNAME) OPNID(LNAME)
Is This Answer Correct ? | 6 Yes | 2 No |
Answer / prototype
V5R3 and above -
You can declare more then 1 file, a maximum of 5 along with
a unique open id against each. These open id's can be used
to read data from these files.
Source member name may not be CLLE, it will work with CLP
as well.
CLLE is ofcourse required but when CALLPRC or something of
the sort (AN ILE FEATURE) is used but not for DECLARING
files!
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / kapil kumar
In cl/400 u can not declare more than one file but in clle u can declare max. of five files. Syntax is same as in cl/400
DCLF
Is This Answer Correct ? | 6 Yes | 5 No |
Answer / g.karthik
we can declare only one file in cl/400..
not possible in cl/400 to declare 2 or more files..
it is possible in rpg/400
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / deepak
we can declare moer than one file in cl/400 by using opnid
Is This Answer Correct ? | 0 Yes | 0 No |
how to find whether a date format is valid or not in RPG400 not in RPGILE.Can you please write the coding for this sir,i'm new to AS400.Please help.
suppose there are 100 records and i want to read records between 60-70 how we can read this 10 records in rpg
When it is desirable to describe files Internally?
1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.
I have a RPG program of 100 Lines and first line is to SETON indicator LR. Will the program execute rest of the 99 Lines?
Can someone tell me tell me what is meant by message wait...?
What will be your approach in going either for OPNQRYF or Logical files. Which one to go for?
why we do STRSRVJOB in batch debugging in as400
how to display all the members records in a physical file without using ovrdbf?
1.String operatio such as moving the characters to the variables? 2.what are the building functions for check file longs? 3.which of the following methods will make externally describe file fields available to a program? A: A/copy statement that specifies the library file and member of the field reference file source code B: A data structure definition specification that names the file on the EXTNAME keyword C: A data structure definition specification that names the file on the IMPORT keyword? D: A Definition specification for each desired field with the REFFLD keyword
1.The questions have given an array declaration and move operation then this statement is correct or not?
difference between 1:%found and %equal built function in detail with example .