CAN WE INSERT FIELD IN PHYSICAL FILE BY USING OPNQRYF?
Answer Posted / manish kumar
MAPFLD is used to change the format of the fields used in
the OPNQRYF statement. When I say changing the format the
format of the field will not be changed but we can format
the data as we wish and store it in a diffrent variable.
For eg. You want check for year to be some value and are not
concerned abt date and month then you can follow as below.
OVRDBF FILE(FILEA) SHARE(*YES)
OPNQRYF FILE(FILEA) QRYSLT('YEAR *EQ "88" ') +
MAPFLD(YEAR '%SST(DATE 5 2)' *CHAR 2)
CALL PGM(PGMC)
CLOF OPNID(FILEA)
DLTOVR FILE(FILEA
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
how can a message from a message file appear as a constant on the screen?
what is the purpose of putovr (put with explicit override) keyword?
What is dynslt?
WHAT is STORED PROCEDURE CONCEPT IN AS400 WITH EXAMPLE?
what is a query can be run in which mode?
What is %CHECK?
what is a non-join logical file?
A join logical file has how many record formats?
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 maximum number of record formats in dspf?
what are the different types of data areas?
Write a logic program for knowing the repeated number of a vowels in a given program?
is there any way to dynamically merge other html scripts into a given html?
define subsystem?
what is the difference between *like and *namvar ?