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

Hi, can you plz tell me ...syntax for GET command in FTP & SFTP is same or different???

3 Answers  


define a output queue?

1 Answers   IBM,


what is a program described file in rpg?

1 Answers   IBM,


how many printer files can be defined in f specs ?

1 Answers   IBM,


why is as/400 called object oriented machine?

1 Answers   IBM,






How Many Specs Are There In Rpg & Which Are They?

0 Answers   IBM,


maximum number of subfiles that can be active for a single file is?

1 Answers   IBM,


what is the difference between *like and *namvar ?

1 Answers   IBM,


what is cab?

0 Answers   IBM,


How we will get issues on AS/400 technology ? I mean which issue/Defect Tracking tool is using in all companies when any issue comes? Can anybody explain about the work flow of AS/400 project ? plzzz

0 Answers  


what is the difference between seton lr and retrn?

1 Answers   IBM,


Define the purpose of Factor 1 the Operation Code and *IN15 in following code HI LO EQ C *YMD Test(D) yymmddDate 15

1 Answers  


Categories