Tag: mainframe

Questions Related to mainframe

  1. user modified field to be sort ascending

  2. No specific order specified

  3. Jumbled order

  4. None of the above


Correct Option: A
  1. Sum up value in the fields specified in the SORT FIELDS statement and keep it as only one occurence in the o/p

  2. Removes the duplicates for the fields specified in the SORT FIELDS statement and keeps only the 1st occurence of it

  3. Works only for those records in the i/p file where no duplicates for the fields specified in SORT FIELDS statement,

  4. None of the above


Correct Option: B
  1. SORT FIELDS = (1,10,CH,A),SKIPREC= 10

  2. SORT FILEDS = (1,10,CH,A),SIZE = 10

  3. Sort FIELDS = (1,10,CH,A),STOPAFT = 10

  4. Sort FIELDS = (1,10,CH,A),EQUALS = 10


Correct Option: C
  1. F (Fixed), V (Variable), D (ISCII/ASCII Variable)

  2. F (Fixed), V (Variable)

  3. No types are specified in the Record Statement

  4. FI (Fixed), VA (Variable)


Correct Option: A
  1. SORT FIELDS=(1,5,ZD,A) OUTREC FIELDS=(1:SEQNUM,5,ZD,6:6,295)

  2. SORT FIELDS=(1,5,BI,A) OUTREC FIELDS=(1:SEQNUM,5,BI,6:6,295)

  3. SORT FIELDS=(1,5,ZD,A) OUTREC FIELDS=(1:RESEQ,5,ZD,6:6,300)

  4. None of the above


Correct Option: A

An i/p file PRODUCTS contains the records in the following sequence with the fields as SEQ #, PRODUCT NAME, PRODUCT CODE: 0001 LUX 1111 0002 PAMOLIVE 2222 0003 LUX INTERNATIONAL 1111 0004 CINTHOL 3333 Which if the following sort statements would COPY only the LUX products to the o/p file?

  1. SORT FIELDS = COPY INCLUDE COND = (24,4,CH,EQ,'1111')

  2. SORT FIELDS = COPY OMIT COND = (24,4,CH,NE,'1111')

  3. SORT FIELDS = COPY INCLUDE COND = (6,3,CH,EQ,'LUX')

  4. All of the above


Correct Option: D
  1. SORT FIELDS=COPY OUTREC FIELDS=(1:1,24,25,6,ZD,MUL,+0.97,TO=ZD,LENGTH=6,31:31,185)

  2. SORT FIELDS=COPY OUTREC FIELDS=(1:1,24,25,6,ZD,MUL,+97,DIV,+100,TO=ZD,LENGTH=6,31:31,185)

  3. SORT FIELDS=COPY OUTREC FIELDS=(1:1,24,25,6,ZD,DIV,+100,MUL,+97,TO=ZD,LENGTH=6,31:31,185)

  4. All of the above


Correct Option: B,C
  1. SORT FIELDS=(1,3,CH,A) SUM FIELDS=NONE OUTFILE FNAME = F2

  2. SORT FIELDS=(1,3,CH,A) SUM FIELDS=NONE,XSUM

  3. SORT FIELDS=(1,3,CH,A) SUM FIELDS=NONE COPY = F2

  4. None of the above


Correct Option: B