Hi,This is raju.Can any body give me the real experience
answer for this question?
1.What is the significance of *MAP and *DROP in the CPY
command?
Answer Posted / nora alexander
It's for Record format field mapping - if you use *NOCHK it
just copies the data without regard to field type or size,
which is a bad idea.
*MAP
Fields with the same name in the from-file and to-file
record formats are copied, and any fields in the to-file
that do not exist in the from-file format are set to the
default value specified on the DFT keyword for the data
description specification (DDS) of the to-file or zero for
numeric fields, blanks for character fields, current
date/time for date/time fields, or null value for null-
capable fields.
If *MAP is specified, *DROP can also be specified. Mapped
fields may have different starting positions in the from-
file and to-file record formats.
If *MAP is specified and a valid conversion is defined
between the from-file field CCSID and the to-file field
CCSID, the character data is converted to the to-file field
CCSID. However, if either the from-file field CCSID or the
to-file field CCSID is 65535, the character data is not
converted.
*MAP allows for the conversion of date/time data and the
copying of null values.
*DROP
This value must be specified for field-level mapping if any
of the field names in the from-file record format do not
exist in the to-file format. If *DROP is specified, *MAP
can also be specified. When *DROP is specified, all the
field names that exist in both record formats must have the
same attributes and relative positions in the from-file and
to-file record formats, or *MAP must also be specified.
Null values are copied.
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
can I touch the array during treatments?
what do you mean by an input subfile, what are the keywords required?
what was the robotech rpg?
is this a rpg channel?
How to call one program from another program in RPG? please help me with the code
Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg
What is a record lock error?
are there any useful c runtime apis that I can call from rpg iv?
We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?
what is an online rpg?
can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.
what is the necessary keyword needed to scroll subfile records?
How can we know running job is batch or interactive?
How to declare the pull button in AS/400..
What is the difference between iter and do?