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


Please Help Members By Posting Answers For Below Questions

how can you detect and handle a record lock situation?

1207


how many files, printer files you can describe in a rpg?

624


What is the use of jdftval in as400?

903


maximum number of subfiles that can be active for a single file is?

966


what is a primary file?

1033






which are control break logic indicators?

629


In Which Specs Arrays, Tables & Constants Are Defined?

694


What is access path in as400?

838


how does union file maintains record formats?

613


What is the default access path of a file?

580


Difference Between Source Physical File & Physical File?

630


how can I start a page in a new window?

775


what is the purpose of data structure?

1000


under given circumstances, my cgi should link to another site. How to implement this?

569


why is as/400 called object oriented machine?

940