IBM Rpg iv with ile - 000-268 FREE EXAM DUMPS QUESTIONS & ANSWERS
Service Program UTILA is a utility service program that once called MUST remain active for the life of the job. Which of the following commands will create the service program so that once it has been initiated all further calls to its procedures will use the same instance?
Correct Answer: C
Vote an answer
A program needs to concatenate the 3 numeric fields shown below such that Phone# contains a string in the format aaabbbcccc, where aaa is the AreaCode field, bbb is the PhPrefix field and cccc is the PhNbr field. All positions of Phone# must be filled with digits.
D AreaCode S 3 0
D PhPrefix S 3 0
D PhNbr S 4 0
D Phone# S 10A
Which of the following code segments would correctly accomplish this task in all circumstances?
D AreaCode S 3 0
D PhPrefix S 3 0
D PhNbr S 4 0
D Phone# S 10A
Which of the following code segments would correctly accomplish this task in all circumstances?
Correct Answer: D
Vote an answer
Given the following expression:
SoldAmt + Dividends
TotalReturnPct = ( ---------------------- - 1 ) * 100
PaidAmt + Commissions
Which /free form expression below is correct?
SoldAmt + Dividends
TotalReturnPct = ( ---------------------- - 1 ) * 100
PaidAmt + Commissions
Which /free form expression below is correct?
Correct Answer: B
Vote an answer
Which of the following code segments will fill FLD1 with lower-case x characters?
Correct Answer: B
Vote an answer
Which of the following code segments shows the correct use of the externally described printer file PRT1 containing record format FMT1?
Correct Answer: B
Vote an answer
Given the following RPG IV file specifications:
FFilename++IPEASFRlen+LKlen+AIDevice+.Keywords
FFILE1 UF A E DISK
FFILE2 UF E A DISK
FFILE3 UF E DISK
FFILE4 UF E DISK UPDOPT(*ADD)
Which file will allow the WRITE operation to be used?
FFilename++IPEASFRlen+LKlen+AIDevice+.Keywords
FFILE1 UF A E DISK
FFILE2 UF E A DISK
FFILE3 UF E DISK
FFILE4 UF E DISK UPDOPT(*ADD)
Which file will allow the WRITE operation to be used?
Correct Answer: A
Vote an answer
A Service Program was originally created with the following binder language:
STRPGMEXP PGMLVL(*CURRENT)
EXPORT SYMBOL('A')
EXPORT SYMBOL('B')
ENDPGMEXP
Module C is to be added to the Service Program. It is a NOMAIN module containing two subpocedures - X and Y.
Which of the following binder sources could be used to ensure that existing programs which use this service program, continue to work correctly without being recreated or updated?
STRPGMEXP PGMLVL(*CURRENT)
EXPORT SYMBOL('A')
EXPORT SYMBOL('B')
ENDPGMEXP
Module C is to be added to the Service Program. It is a NOMAIN module containing two subpocedures - X and Y.
Which of the following binder sources could be used to ensure that existing programs which use this service program, continue to work correctly without being recreated or updated?
Correct Answer: A
Vote an answer
Given the following code:
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords++++++++++++++++++++
D ary S 5 Dim( 4 ) Ascend
D x S 2 0 Inz( 1 )
C Eval ary(1) = 'Tom'
C Eval ary(2) = 'Dick'
C Eval ary(4) = 'Harry'
C SortA ary
C*0N01Factor1+++++++Opcode(E)+Factor2+++++++Result++++++++Len++D+HiLoEq C 'Jim ' LOOKUP ary(x) 9999 Which of the following is correct as the result of running the code?
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords++++++++++++++++++++
D ary S 5 Dim( 4 ) Ascend
D x S 2 0 Inz( 1 )
C Eval ary(1) = 'Tom'
C Eval ary(2) = 'Dick'
C Eval ary(4) = 'Harry'
C SortA ary
C*0N01Factor1+++++++Opcode(E)+Factor2+++++++Result++++++++Len++D+HiLoEq C 'Jim ' LOOKUP ary(x) 9999 Which of the following is correct as the result of running the code?
Correct Answer: B
Vote an answer
In the following code sample, file CUSSALES contains a record format CUSSALESR, with unique key fields CSCONO, CSCSNO and CSYEAR.

Assuming the READE operation is successful, which record is retrieved?

Assuming the READE operation is successful, which record is retrieved?
Correct Answer: D
Vote an answer
The following code segment is part of an existing program:
C*0N01Factor1+++++++Opcode(E)+Factor2+++++++Result+++++++Len++D+HiLoEq
C If C = D
C Eval *IN50 = *off
C EndIf
Which of the following produces equivalent results under ALL possible conditions?
C*0N01Factor1+++++++Opcode(E)+Factor2+++++++Result+++++++Len++D+HiLoEq
C If C = D
C Eval *IN50 = *off
C EndIf
Which of the following produces equivalent results under ALL possible conditions?
Correct Answer: A
Vote an answer