nerdexam
IBM

000-349 · Question #14

The example below shows 3 records of a file. Each record is terminated with a <NL> character. The file is not limited to a specific number of records. CMS Business Systems…

The correct answer is C. The File component is defined as Format = Implicit and Component Syntax = None; the Record. An unbounded, newline-terminated flat file is best modeled with the File group using Format = Implicit and Component Syntax = None, because the file has no explicit record count and no file-level delimiter separating its components.

Design

Question

The example below shows 3 records of a file. Each record is terminated with a <NL> character. The file is not limited to a specific number of records. CMS Business Systems S30093467390212200815AN<NL> CMS Business Systems S40073617390628200817NN<NL> CMS Business Systems S40073617390628200817NN<NL> The type tree has been constructed with two groups named File and Record. Select the options that best define the format and component syntax properties for the two groups:

Options

  • AThe File component is defined as Format = Explicit and Component Syntax = Fixed; the Record
  • BThe File component is defined as Format = Explicit and Component Syntax = None; the Record
  • CThe File component is defined as Format = Implicit and Component Syntax = None; the Record
  • DThe File component is defined as Format = Implicit and Component Syntax = Fixed; the Record

How the community answered

(28 responses)
  • A
    7% (2)
  • C
    82% (23)
  • D
    11% (3)

Why each option

An unbounded, newline-terminated flat file is best modeled with the File group using Format = Implicit and Component Syntax = None, because the file has no explicit record count and no file-level delimiter separating its components.

AThe File component is defined as Format = Explicit and Component Syntax = Fixed; the Record

Format = Explicit requires an occurrence count to be embedded in the data stream, which is absent here since the file is not limited to a specific number of records, making Explicit incorrect for the File group.

BThe File component is defined as Format = Explicit and Component Syntax = None; the Record

Although Component Syntax = None is correct for the File group, Format = Explicit is wrong for the same reason as choice A - no record count is present in the data.

CThe File component is defined as Format = Implicit and Component Syntax = None; the RecordCorrect

Format = Implicit on the File group is correct because there is no explicit count or envelope in the data stream defining how many records exist - the file implicitly contains all records until end-of-data; Component Syntax = None is correct because the File group itself has no delimiter between its child Record occurrences at the file level, as each Record manages its own boundary via the <NL> terminator.

DThe File component is defined as Format = Implicit and Component Syntax = Fixed; the Record

While Format = Implicit is correctly identified for the File group, Component Syntax = Fixed would imply a predetermined fixed number of child components, which contradicts the requirement that the file is not limited to a specific number of records.

Concept tested: Type tree group format and component syntax for unbounded files

Source: https://www.ibm.com/docs/en/b2b-integrator/6.2?topic=properties-group

Topics

#type tree#format properties#component syntax#NL delimiter

Community Discussion

No community discussion yet for this question.

Full 000-349 Practice