COBOL Interview Questions
Questions Answers Views Company eMail

how to transfer the file from pc to mainframe??

3 10850

01 ws-p pic 9(2). 01 ws-q pic 9(2) value 01. 01 ws-r pic 9(2) value 99. p.d. compute p = q + r what will be result of p ans(00) but my question is that how i got 10 on the place of 00. (truncation will ocuure on right side not left). please tell me ?

L&T,

6 8866

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?

RBS,

5 11048

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?

ADP, Broadridge, CTS, HSBC, L&T, RBS, TCS,

15 94160

What is different between variable length and fixed length?

TCS,

2 7375

can we read records in a file from botom to top. if possible how can we read

ACS,

12 17135

01 a pic s9(5) value '-12345' how it will be stored

ACS,

7 13129

how we can edit records in vsam data set and non vsam data sets

ACS,

2 7048

what is the advantage of sync class

ACS,

3 9704

01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would be stored in b.

ACS,

15 16991

How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length

IBM, Wipro,

2 15113

If A>B next sentence end-if display 1 display 2. display 3. If a>b, it will display only 3.(the next sentence, ie., after fullstop/period) ____________________________________ if a>b continue end-if display 1 display 2. display 3. If a>b, it Will display 1 2 3 (the next statement) ____________________________________ if a>b continue display 1 end-if display 2 display 3. display 4. If a>b, Will it display 2 3 4 (or) 1 2 3 4 ?

UST,

8 9514

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 5225

I got user abend U4038 while compiling my runjcl.. can anyone help me?

CGI,

10 51181

i declare a Table as OCCURS 2000 TIMES.If the input file has more than 2000 records will the COBOL program fail?

12 14887


Post New COBOL Questions

Un-Answered Questions { COBOL }

How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

639


What is the utilization of copybook in cobol?

650


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

700


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1928


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

892






Write a program that uses move corresponding.

668


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

706


How do get the result of your program directly on your pc?

1878


What is a report item?

737


What is the difference between external and global variables in COBOL?

811


Can we redefine the field of x(200) to less than 200?

814


What is length is cobol?

644


What is static and dynamic call in cobol?

590


Differentiate between structured cobol programming and object-oriented cobol programming.

663


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

670