ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories >> Software >> MainFrame
 
 


 

Back to Questions Page
 
Question
What is different between variable length and fixed length?
Rank Answer Posted By  
 Question Submitted By :: Selva801111
I also faced this Question!!   © ALL Interview .com
Answer
fixed length file contains same record length for all 
records.but in variable length files length of the record 
varies ,it can be useful in such cases we are not sure 
about the length of the output file to be generated
 
0
Udaya Bharathi
 
 
Answer
variable lenth means record should be in different format
(lenth).but the first 4 bytes only taken as a record lenth.
fixed lenth means we have declaring a record lenth.
 
0
Saravanan
 
 
Question
What will happen if we r using seton lr after return or vice
versa.
Rank Answer Posted By  
 Question Submitted By :: Vinit
I also faced this Question!!   © ALL Interview .com
Answer
The system return the control from called program to the 
calling program when RETURN encounter.Suppose LR is also ON 
after the RETURN executed,all resources will be release.
For example,
A program pgm1 call the another pgm2 within a loop,
/free
    num=0;  
   dow not %error;
     callp(e) pgm2();
   enddo;
/End-free 
The pgm2 where the return is executed before LR turned ON
/free
num=num+1;
return;
/End-free
we can see the value of num will be increase all the time 
when pgm1 will call the pgm2.
and opposite case:
/free
num=num+1;
*inlr=*on;
return;
/end-free
value of num will be start from zero.
 
0
Guest
 
 
 
Question
How to update selected fields from pf without using update
opcode. 

How to read all member in Rpg-3,without using any cl command?
Rank Answer Posted By  
 Question Submitted By :: Vinit
I also faced this Question!!   © ALL Interview .com
Answer
we can update selected fields from pf using EXCEPT OPCODE
 
0
Vasu Devareddy.g
 
 
Question
I have the requirement to compare the two files and pick up
the matching records.
File 1.         file2

23              32
32              13
34              15
35              36
36              35 
43

Get the matching records from this 2 files to out file. how
you will do this in cobol program?
Rank Answer Posted By  
 Question Submitted By :: Kumars_nesa
This Interview Question Asked @   RBS , Xyz
I also faced this Question!!   © ALL Interview .com
Answer
firt read file1 move each record to table. at the end of 
file1 start read file2. for each record read from file2
compare that record with all the elements from table. if it 
match write that record to the output file. same procedure 
follow for all the records from file2
 
0
Sreejith
 
 
Answer
load any of the file to the table and use SEARCH.
write the matching records to the output file.
 
0
Pa
 
 
Question
I have the file which is having the extension no as records.
sample file will look like below.

2310
3410
3256
4350
3781
5408

I need to replace the record which is starting with 3 to 5
(i.e) 3410 to 5410. How can we do it through cobol 

and cobol-db2 program? I need the possible logic?
Rank Answer Posted By  
 Question Submitted By :: Kumars_nesa
This Interview Question Asked @   RBS
I also faced this Question!!   © ALL Interview .com
Answer
read the record to the WS varible defined below
01 ws-var1.
   05 ws-var2   pic x(1).
   05 ws-var3   pic x(2).

if ws-var2 = '3'
  inspect ws-var replacing first '3' by '5'
end -if

read the next record.

Hope it works
 
0
Pa
 
 
Question
Do all versions of the GDG have to be of the same record 
length ? is it possible to ovverride the dcb of the model 
dataset?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
yes, since a GDG is defined as a flat file, with a model 
DCB, it is defined with a fixed record legnth and when we 
create its versions, we just add up new flat files of same 
legnth of higher versions, hence they should have the same 
legnth.The legnth that is there for the base (0 level GDG) 
is carried forward for the next versions.
 
0
Sushree Mohanty
 
 
Question
how to identify a vasam dataset by seeing in 3.4(browse)
Rank Answer Posted By  
 Question Submitted By :: Pratap
This Interview Question Asked @   Cap-Gemini
I also faced this Question!!   © ALL Interview .com
Answer
One can identify the VSAM file in 3.4 option by seeing the 
INDX and DATA of the file.
 
0
Vinodh
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com