Multiple choice technology programming languages

Which is the correct syntax of INTOEMPTY Parameter?

  1. IMPORT INFILE(DD1) OUTFILE(DD2) IEMPTY

  2. IMPORT INFILE(DD1) OUTFILE(DD2) INTOEMPTY

  3. IMPORT INFILE(DD1) OUTFILE(DD2) IETY

  4. IMPORT INFILE(DD1) OUTFILE(DD2) EMPTY

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The correct syntax for IMPORT with INTOEMPTY parameter is IMPORT INFILE(DD1) OUTFILE(DD2) IEMPTY. INTOEMPTY ensures the target cluster is empty before importing. Option A is correct with IEMPTY - the shortened keyword form. Options B, C, D use incorrect keyword variations (INTOEMPTY, IETY, EMPTY).

AI explanation

To answer this question, we need to understand the syntax for the INTOEMPTY parameter in the given context.

The correct syntax of the INTOEMPTY parameter is:

B. IMPORT INFILE(DD1) OUTFILE(DD2) INTOEMPTY

This option is correct because it uses the keyword "INTOEMPTY" to specify that the data from the input file (DD1) should be imported into the empty output file (DD2).

Option A) IMPORT INFILE(DD1) OUTFILE(DD2) IEMPTY - This option is incorrect because "IEMPTY" is not a valid keyword to specify the INTOEMPTY parameter.

Option C) IMPORT INFILE(DD1) OUTFILE(DD2) IETY - This option is incorrect because "IETY" is not a valid keyword to specify the INTOEMPTY parameter.

Option D) IMPORT INFILE(DD1) OUTFILE(DD2) EMPTY - This option is incorrect because "EMPTY" is not a valid keyword to specify the INTOEMPTY parameter.

Therefore, the correct answer is B) IMPORT INFILE(DD1) OUTFILE(DD2) INTOEMPTY.