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

Job is running in production 24/7 how do u debug that running job ?

1 Answers   Wipro,


what is procedure prototype and procedure interface.

0 Answers   IBM,


I/o error detected,Record Out of sequence,Permanent I/o error occured....I mean give one eg for these errors...i understand only,update/delete operation without prior read oprn..give details of remaining

1 Answers   CTS,


I need to insert a record in a file using STRSQL containing the some field values same as an already existing record in that file.I know to smple insert mentioning those values one by one.But is there any another query can be prepared for the same .Please share the query if known to you. Thanks in advance.

0 Answers   CSC,


How do you combine two record formats in RLU ?

1 Answers  






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

5 Answers  


What is GDA?

1 Answers  


name few ibm supplied libraries?

2 Answers   IBM,


what is the main use of OPNQRYF ?? in that query why we can use OVERDBF and in that OVERDBY why should we use SHARE(*YES)

2 Answers   IBM,


how to handle job errors in as400 what is the command and where can we find out whether the job has any errors

2 Answers   Virtusa,


What is Job, What are the attributes of a Job?

1 Answers  


different type of cursor?

0 Answers   IBM,


Categories