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 |
What is difference between rename and prefix?
what does dfu program you to do on a record?
how can a cgi check whether an ifs object is available?
in which specification the report layout can be defined?
not all command typed on command line are cl command? true r false
Which is better LF or OPNQRYF ? When should we use LF and when should we use OPNQRYF ?
how can you check for a records existence without causing and i/o (chain/read)?
Why we have multiple data types in As400 and why we use numeric, packed, decimal, zoned the basic difference between this?
What is access path in as400?
Any change in service program we write binder language to allow signature change,What is the maximum number of signature change allowed in RPGLE?
3 Answers Syntel, Tech Mahindra,
Good morning my experts.Im kuppi.im working as a software trainee on AS/400 technology.i have also joined with ibmi5 team.im trying to convert date with cl/400 coding.I have taken 2 parameters(like date and date types). A. If suppose date type is j,Now i want to convert date to *MDY format B. if date type is M,now i want to convert date to *JUL format C. sending a Program message with the value of converted date.
what is a physical file?