write a pgm to read p.f using cl pgm?
Answers were Sorted based on User's Feedback
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 |
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 |
Is LDA can be access accross the Job?
How do you combine two record formats in RLU ?
What are the different ways to input data into data area?
when is a tag statement used in rpg?
how does the runqry show the output?
can you have multiple key lists for a single file ?
Suppose we have field reference file we were any changes that corresponding Physical file then what will Happen in field reference file??
How Many Specs Are There In Rpg & Which Are They?
The content of Physical file is as below: hfcftp wruquief SENDPASV 0 CDUP ASCII GET 01100901.CSV ramndk/ECP505.EC0110090 (REPLACE QUIT Thw above commands will get executed when we call STRTCPFTP from CL program.... Now if I want to use SFTP what can be the solution? plz reply in detail....Thank you for ny help... I m using RPG/ILERPG to download...
What is the difference between physical file and logical file?
What is the purpose of STRCMTCTL command?
what is a join logical file?