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 ? | 54 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 ? | 33 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 ? | 14 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 ? | 11 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 |
Have a join logical file with more than one members with different record formats. So how can we read the different members from this file and also how we can read the different record format from the join logical?
in a cl pgm records are copied to a file in qtemp a pgm is called to delete records from the file in qtemp no of records in file in library qtemp is checked wat shud be the count of records let say it was 10 initially endpgm
thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400
1.How to load Records of a Physical file(PF) in the reverse order, in CL program?
Suppose we have 10 records with same name and we are reading using READE,after 4 record i have to use CHAIN what is the output
How to update selected fields from pf without using update opcode. How to read all member in Rpg-3,without using any cl command?
What are the necessary keywords required to code a message subfile?
How to read a record from file where there is multiple record occurrence is available?
How can we receive values from a called procedure in RPG?
Can anybody tell me the setps to create .csv file in IFS folder on AS/400. I also need to know how I can send this .csv file to PC in xls sheet.....?
How to identify the object has compiled with the debug view as *source without using STRDBG?
How to add 2 new fields in a file? How many ways are there in as400?