Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

COBOL Interview Questions
Questions Answers Views Company eMail

how to transfer the file from pc to mainframe??

3 9482

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 6495

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 8814

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 74358

What is different between variable length and fixed length?

TCS,

2 6115

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

ACS,

12 13176

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

ACS,

7 10168

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

ACS,

2 5874

what is the advantage of sync class

ACS,

3 8322

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 11988

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 11607

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 6724

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 4198

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

CGI,

10 40457

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

12 10431


Post New COBOL Questions






Un-Answered Questions { COBOL }

how to convert the recors form vsam file to db2 table tru file aid

2151


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

1378


How do you get the data to code the BMS macro?

965


Define in-line perform?

151


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

205






What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

187


What rules are followed by the search verb.

156


Write a program to enter and display the names of students in a class using the occurs clause.

140


Can you please let me know the centre name of INS certification in Kolkata.

1253


What are various search techniques in cobol? Explain.

161


Which Search verb is equivalent to PERFORM…VARYING?

167


i want a program using by if, evaluate , string, unstring, perform, occurs?

3187


What is the difference between PIC 9.99 and 9v99 in COBOL?

183


I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

1466


Which mode is used to operate the sequential file?

179