write a pgm to read p.f using cl pgm?

Answers were Sorted based on User's Feedback



write a pgm to read p.f using cl pgm?..

Answer / remya

dclf file(dsp) recfmt(recdsp)
dclf file(pf) recfmt(recpf) opnid(p)

l1: rcvf rcdfmt(recpf)
monmsg msgid(cpf0864) exec(goto cmdlbl(end))
sndrcvf rcdfmt(recdsp)
goto cmdlbl(l1)
end:endpgm

Is This Answer Correct ?    8 Yes 3 No

write a pgm to read p.f using cl pgm?..

Answer / avinash

START: PGM
DCL VAR(&COUNT) TYPE(*DEC) LEN(10)
DCL VAR(&OUTPUT) TYPE(*CHAR) LEN(10)
DCLF FILE(*LIBL/PGMNAME)
FILE: SNDRCVF RCDFMT(RFMT)
END: ENDPGM

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More IBM AS400 AllOther Interview Questions

difference between view and index ?

0 Answers   IBM,


Define the purpose of the following code (If you know, how would this be written in RPG ILE) HI LO EQ C *IN66 DOUEQ *OFF C KEY1 CHAIN FILEA 90 66 C 66 CALL PGM1 PRM C ENDDO

1 Answers  


what is library?

1 Answers   IBM,


Is it necessary to define all formats ? Which are mandatory and which are Optional ?

1 Answers  


how can i get the cursor position in display screen to to display my window?

5 Answers  






the maximum number of subfiles that can defined in a rpg program for one display file is ___ .

1 Answers   IBM,


how to validate input values in display file ?

0 Answers   IBM,


define the purpose of the *cat function?

1 Answers   IBM,


What is the purpose of Level Check parameter in a Physical file?

1 Answers  


What is the difference between array and a multiple occurrence data structure?

1 Answers  


What is program status data structure(psds) in as400?

0 Answers  


writing an sql statement from selecting records from two files using single statement and nested select statement.

0 Answers   IBM,


Categories