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

Setps to create .csv file on IFS folder in AS/400( V4R3)....?

3 Answers   TCS,


Q1.How to read the Array? Q2.How to copy the content of one Array to another Array?

4 Answers   IBM,


what procedure should we use to find whether the following operations are successful or not setll setgt chain read reade readp pls tell with example i'm not lazy to read the manual or not lazy to do anything.but sometimes i cannot understand the things given in manual in high level english its little bit complicated for me,i can't understand their way of writing thats why i ask these questions here and find the solution in simple words that i can understand thats the real reason sir.sorry if i had hurt you or disturbed you.please understand my situation.

5 Answers   iGate,


WHERE DO WE USE COMIT KEYWORD IN AN RPG PROGRAM? YOU MADE SOME CHANGES TO DATABASE BUT YOU DON'T WANT TO SAVE THOSE CHANGES NOW? HOW DO YOU HANDLE THIS ONE?

2 Answers  


When will DUMP & DEBUG be ignored?

3 Answers   IBM,






Can any one plz explain the concept of INFSR, *PSSR, INFDS AND PSDS, I' confusing about PSDS and *PSSR, Wat is the difference btw them, wat PSDS will do????

1 Answers  


How to call one program from another program in RPG? please help me with the code

0 Answers   HCL,


HI,1: What is the function of 'SETON LR' AND '*INLR=*ON ? 2:Can we used "seton lr" OR "*INLR = *ON" in between the program code ? 3:if yes then according to there function the code which is written acter seton lr/ *inlr should not be execute . Can any one tell me why those code get executed ?

2 Answers  


I need to generate outfile for object of all the user lib. in the sysmte using cmd DSPOBJD. But this cmd is correcpted in my server,Any body tell me is there any alternative...?

2 Answers  


Hello, I want to extend a length of field in my Display file(Subfile). Please suggest the possible steps. Thanks

3 Answers  


2. Which of the following statement(s) explains the difference(s) between the /INCLUDE and ICOPY directives? a.) No difference, they function the same b.) ACOPY cannot be used as a conditional directive c.) IINCLUDE files cannot contain embedded SQL d.) Nesting /TNCLUDE directives is not allowed

2 Answers   IBM,


how to run only 10 modules of existing N modules in service program in RPGILE ?

3 Answers   Wipro,


Categories