write a pgm to read p.f using cl pgm?
Answer Posted / 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 View All Answers
Service Program : S1 Modules in S1 : M1 M1 having two procedures : ADD, SUB Current Binder Language STRPGMEXP PGMLVL(*CURRENT) EXPORT SYMBOL("ADD") EXPORT SYMBOL("SUB") ENDPGMEXP Doubt: I need to add one new Module to the Service Program M2 having one procedure ‘MULT’ How to add this new module to the service program S1 ? If I need to recreate the service program again, Do I need to mention the Module M1 again while recreating along with new Module M2? There is no Binding Directory. Binder language structure will be like this STRPGMEXP PGMLVL(*CURRENT) EXPORT SYMBOL("ADD") EXPORT SYMBOL("SUB") EXPORT SYMBOL("MULT") ENDPGMEXP STRPGMEXP PGMLVL(*PREVIOUS) EXPORT SYMBOL("ADD") EXPORT SYMBOL("SUB") ENDPGMEXP
when do you use f-spec. Continuation line ?
how can u check no of records in a file?
what are the three types of keywords associated with printer file ?
define a shared access path?
what are the three line types in rlu ?
what if my system I runs with system value qccsid 65535?
how to get the cursor position?
using dfu, user will be able to ___________ from physical file?
what is the maximum number of parameters allowed in rpg?
how you get the relative record in a subfile in which cursor is located?
define the purpose of the *bcat function?
define data structure?
what does check opcode do ?
What is program status data structure(psds) in as400?