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

define the purpose of the *bcat function?

1 Answers   IBM,


What are all the different types of access path?

1 Answers  


function of DSPPGMREF?

3 Answers  


when should I use method get, and when should I use method post in my cgis?

0 Answers   IBM,


What would be the output of the variable result? D RESULT S 5S O INZ(00011) C EVAL RESULT = %TRIM(RESULT) Please give me the correct answer for this A.0001 b.compile time error c.11 d.Runtime error

5 Answers  






what is a spool file?

0 Answers   IBM,


Why we are not able to perform insert delete and update operation in Join logical file?

0 Answers   IBM,


How do I remove a flag or check no. or name when a user opens too many sessions?

0 Answers  


can a join logical file be updated?

0 Answers   IBM,


what is externally described file ?

1 Answers   IBM,


what are the three line types in rlu ?

1 Answers   IBM,


What is the purpose of OVRATA keyword ?

1 Answers  


Categories