How to declare the more than one file in cl/400.

Answers were Sorted based on User's Feedback



How to declare the more than one file in cl/400...

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

How to declare the more than one file in cl/400...

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

How to declare the more than one file in cl/400...

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

How to declare the more than one file in cl/400...

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

How to declare the more than one file in cl/400...

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

How to declare the more than one file in cl/400...

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

How to declare the more than one file in cl/400...

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

How to declare the more than one file in cl/400...

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

How to declare the more than one file in cl/400...

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

How to declare the more than one file in cl/400...

Answer / deepak

we can declare moer than one file in cl/400 by using opnid

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

difference between 1:%found and %equal built function in detail with example .

6 Answers   Polaris,


RPG/400 number of Records present in a physical file using file information data structure FPF001 IP E DISK F KINFDS INFDS1 IINFDS1 DS I *RECORD RECORD Is this coding correct sir,i have given I P E that is I- input,P-primary file,E-externally described. Primary to use RPG logic cycle,is this the correct method because we have to find number of records present using file information data structure in RPG/400 without doing any input/output operations on the file and also without using DSPFD,SQL. If the above coding is correct means,when i compile the program it gets compiled,but if i call the program it does not return anything,i need number of records,please complete the coding sir.

1 Answers   IBM,


Hi guys, anybody know How RPG/400 code can be converted to RPG IV code with a single command?

1 Answers  


How to update only a field of a PF in an RPG program. I don't want to update the record, only one field.

2 Answers  


What is the syntax of passing parameters to a procedure by value?

1 Answers  






Suppose in CL we reach at end of file and again we have to reach from 1 record

3 Answers   TCS,


what is a rpg?

0 Answers   IBM,


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.....?

2 Answers  


How Commitment and Roll back control is used in as400, explain with real time senario ???

2 Answers   Acolite, HSBC,


How to sort an array in descending in RPG

3 Answers   Google, TCS,


two types of read performed in dataqueue?????

4 Answers   CTS,


Are all these RPG/400 Interviewed Questions being asked recently? are current?

1 Answers  


Categories