3. Given the DOS Specification below and the following
information:
• Indicator 50 is off
• No records have been written to the subfile
What will be the result if the EXFMT operation code is
performed on the record format CTLR?
A R SUBFL
A DESCRIP 101 6 1ODSPATR(UL)
A DFT(’NOT FOUND’)
A R CTLR SFLCTL(SUBFL)
A N50 SFLDSP
A SFLDSPCTL
A SFLINZ
A 67 SFIJEND
A SFLSIZ(13)
A SFLPAG(12)
A ACCOUNTNO 100 S 10
a.) Only AccountNo will display
b.) SUBFL will be initialized with 13 blank records
c.) An I/O exception error will occur
d.) The screen will display 12 records with ‘NOT FOUND’

Answers were Sorted based on User's Feedback



3. Given the DOS Specification below and the following information: • Indicator 50 is off • ..

Answer / naveen chanda joshi

I think, the answer is option D. If default value ('Not
Found') was not mentioned then it would have display 12
blank records..

Is This Answer Correct ?    7 Yes 1 No

3. Given the DOS Specification below and the following information: • Indicator 50 is off • ..

Answer / reecha

Hi ,
I m Reecha(HCL)



As we are trying to display SFL with empty records, it will
give "Session or device error" .One can control this
either using SFLEND keyword where in code u need to set
it on write the subfile and then setoff.

If this is not controlled then "Session or device error"
will come else empty sfile will be displayed

Is This Answer Correct ?    5 Yes 1 No

3. Given the DOS Specification below and the following information: • Indicator 50 is off • ..

Answer / shobhit

As SFLDSPCTL is specified and SFLDSP is off it will not
give the Session or Device error.

Is This Answer Correct ?    4 Yes 1 No

3. Given the DOS Specification below and the following information: • Indicator 50 is off • ..

Answer / srini

hi this srini


ans) B.

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More RPG400 Interview Questions

In how many ways a session/device error occurs,,, and what is the remedy for it?

3 Answers  


How to create a key field for a logical file inside RPG?

4 Answers   HSBC,


1. If my rpg program has a date field, What extra care I have to take while compiling that RPG program? 2. If the file is keyed and I have declared the file as well as Key list properly in my program. Still am getting an error message like "Chain/reade operation is not allowed" What may be the case?

6 Answers   Virtusa,


How can you determine the number of characters in a variable?

3 Answers  


when will come session device error?

4 Answers   TCS,






1.How you will find the program is batch or online in cl pgm? 2.How you will end the batch pgm when the job runs? write an logic? 3.In wich command the option *drop is used?

2 Answers   TCS,


I have a RPG program of 100 Lines and first line is to SETON indicator LR. Will the program execute rest of the 99 Lines?

6 Answers  


parameters cannot be passed in which one???

4 Answers   CTS,


IN RLU what are the record level keyword is used?

5 Answers   iGate, TCS,


how can i retrieve the field name from display file at run time? Devendra Singh Tomar

3 Answers  


i 'm new to as/400.in an interview i was asked this question.give a practical example for passing information or data through local data area. I know only that data area is an object used to store tiny bits of data or it can store one value at a time and it is used to store frequently changing values or datas.thats all i know about data area can any one tell me how local data area and user defined data area are used to pass data between jobs with a example or coding.thanks in advance.

2 Answers   CTS,


Why did we give STRSRVJOB while debugging batch program

3 Answers   HBL Power Systems,


Categories