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  >>  IBM MainFrame  >>  COBOL
 
 


 

 
 COBOL interview questions  COBOL Interview Questions
 JCL interview questions  JCL Interview Questions
 CICS interview questions  CICS Interview Questions
 DB2 interview questions  DB2 Interview Questions
 IMS interview questions  IMS Interview Questions
 IDMS interview questions  IDMS Interview Questions
 Natural interview questions  Natural Interview Questions
 ADABAS interview questions  ADABAS Interview Questions
 REXX interview questions  REXX Interview Questions
 Assembler interview questions  Assembler Interview Questions
 CLIST interview questions  CLIST Interview Questions
 QMF interview questions  QMF Interview Questions
 MVS interview questions  MVS Interview Questions
 OS390 interview questions  OS390 Interview Questions
 OS 2 interview questions  OS 2 Interview Questions
 VSAM interview questions  VSAM Interview Questions
 QSAM interview questions  QSAM Interview Questions
 Sysplex interview questions  Sysplex Interview Questions
 IBM MainFrame AllOther interview questions  IBM MainFrame AllOther Interview Questions
Question
Write a program to concert an Indexed file into Sequential 
file?
 Question Submitted By :: Nimsatprasad
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Write a program to concert an Indexed file into Sequential file?
Answer
# 1
Program:

1. Define sequential file of same record size as of Indexed 
file. say "WS-SEQ-FILE-RECORD".

2. Open Indexed file in INPUT mode and Sequential file in 
output mode.

3. Read Indexed file into "WS-SEQ-FILE-RECORD".

4. Write into Sequential file. Continue Step 3 thru 4 until 
end of Indexed file.


JCL:

Use Utility = IDCAMS,
//DD1      DD DSN=INDEXED.FILE.NAME 
//DD2      DD DSN=SEQUENTIAL.FILE.NAME 
// SYSIN   DD  *
   REPRO INFILE(DD1) OUTFILE(DD2)
/*
//
 
I Hope this will help you !!!!
 
Is This Answer Correct ?    2 Yes 0 No
Ajay Ahuja
 

 
 
 
Other COBOL Interview Questions
 
  Question Asked @ Answers
 
Is it possible to mutliply a comp variable with an comp-3 variable. Will there be any error if i do it? UST2
What is Comm? IBM2
Consider the following COBOL entries 05 X PIC 99 VALUE 10. ADD 40 X TO X. COMPUTE X = 3 * X - 40. The result in X is TCS7
In a program, variables are used but no DB2 involved in it. Can you call it as host variables?? EDS3
A paragraph PARA-X is to be executed when none of the data names A, B and C have value of 1. Which of the following will achieve this ? (a) IF A NOT = 1 OR B NOT = 1 OR C NOT = 1 PERFORM PARA-X (B) IF NOT A= 1 AND B= 1 AND C = 1 PERFORM PARA-X (C) IF A NOT =1 IF NOT B = 1 OR C= 1 PERFORM PARA-X (C) IF A NOT = 1 AND B NOT = 1 AND C NOT = 1 PERFORM PARA-X TCS3
What is the difference beetween Arrays and Tables in Cobol? please dont give the answer that arrays in cobol terminology is called tables...... BirlaSoft1
what is S04E error in jcl? IBM4
What will happen if you code GO BACK instead of STOP RUN in a stand alone COBOL program ?  5
When search all is used in cobol program without sorted input data? Principal-Finance4
I have 2 dimensional array with having 100 elements. So how to find the 11th item in an array? IBM4
Please let me know how the Eject verb works for page break.. I want to know the code, how it is used.  2
We are using the searching a table which is indexed, once the key is found, how can we get the occurance at which the key was found.  1
What do you do to resolve SOC-7 error? Sun-Life1
WE HAVE 5 DIFFERENT RECORDING MODE IN COBOL.FIXED, FIXEDBLOCK, VARIABLE, VARIABLEBLOCK AND UNDEFINED. WHAT IS THE DIFFERENCE AMONG ALL AND WHICH TYPE OF FORMAT SHOULD BE USED WHEN Infosys1
what is the difference between start and startbr?  2
What is an in-line perform ? Accenture4
What is COMP-1? COMP-2? CitiGroup1
The order of precedence of arithmetic operators in an expression can be overridden with the use of (a) [] (b) () (c) {} (d) Any of the above TCS3
Why occurs can not be used in 01 level ? TCS2
Sending data is aplhabetic size 7 (value 3000), I wantated this value to be stored in database, which is defined as s9(7)v9(2)comp-3.  2
 
For more COBOL Interview Questions Click Here 
 
 
 
 
 
   
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