IBM MainFrame Interview Questions
Questions Answers Views Company eMail

How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.

CSC, SPIC,

5058

I was asked in HSBC interview following questions: 1. A string was given " techincal seminar on cobol language" Interviewer asked me to calculate the number of vowels in this string.

HSBC,

5 18189

How do you unload data from DB2 tables into a PS file.write the code and how do you do it? what will be the syntax?

DELL, HSBC,

3 17214

In a string " SEMINAR" .Replace "A" by 123. will this replacement will happen ot will it give error? If not , den what will be the output?

HSBC,

5 9097

Write a JCL by using the below requirement: File1 =1, File2 =11 and output needs to come as File3 =111?

Saggezza,

8 17114

When concatenating two PDS can any one PDS can have empty dataset i.e without any value(Dummy).

2 6131

What is the difference between READ BY ISN and FIND

2 11934

How to solve SOC7. I have the cobol coded as below 01 A PIC 9(4). 01 AIN REDEFINES A. 05 AIN1 PIC S9(4) 01 B PIC 9(4)V99. 01 BIN REDEFINES B. 05 BIN1 PIC S9(4)V99. PROCEDURE DIVISION. START-PARA. INITIALIZE A AIN B BIN. ACCEPT A B. DISPLAY 'VALUE OF A=' A. DISPLAY 'VALUE OF B=' B. DISPLAY 'VALUE OF BIN1=' BIN1. DISPLAY 'VALUE OF AIN1=' AIN1. COMPUTE AIN1 = BIN1 - AIN1. DISPLAY 'VALUE OF AIN1=' AIN1. When i'm executing this code i'm getting SOC7 for A = 12 & B=34. Can someone explain SDSF OUTPUT DISPLAY TCOM058R JOB05458 DSID 102 LINE 0 COLUMNS 02- 81 COMMAND INPUT ===> SCROLL ===> CSR ********************************* TOP OF DATA ********************************** VALUE OF A=12 VALUE OF B=34 VALUE OF BIN1=34 VALUE OF AIN1=12 CEE3207S The system detected a data exception (System Completion Code=0C7). From compile unit PROG1 at entry point PROG1 at statement 29 at compile +000004CE at address 00007ECE. Please address how to solve this issue Thanks in advance.

1 8068

How do you pass GDA into a sub program with out PDA?

IBM,

2 8666

I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1796

can any body explain about plan and pakage in detail....

HSBC, IBM,

2 8746

what is meant by BUFND & BUFNI..?

1 10362

Hi, all suppose i have 5 steps (S1,S2,S3,S4,S5) what will happen if cond is true or false (which of the other steps get executed)? 1) //s3 exec pgm=abc,cond=(0,le) 2) //s3 exec pgm=abc,cond=(0,le,step2) 3) In the jobcord RESTART=step3,cond=(0,le) 4) can i code COND=TRUE in jobcard, if yes what will happen?

TCS, Tech Mahindra,

3 8156

How to read records in reverse order in flat file? I know we can do it by reading all records into an array.... Then read records in reverse order by using subscript or index but can any body give me the exact code.

TCS,

5 19496

Hi, all Suppose i have 10 step in a job (s1,s2,s3,...s10) i want to execute step9 first and then step3 and i used the DPRTY for these steps. so what will happen to other steps? Will the get executed or only these two steps get executed?

2 6077


Un-Answered Questions { IBM MainFrame }

What is db2 stogroup?

673


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8616


when an xctl is done, does the tranid change ? Is a new task created ? Does it cause an implicit syncpoint to be issued ?

714


What are the pertinent COBOL commands?

2619


How do I copy a table in db2?

571






//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*

904


list the sequence of steps used to achieve modiication in skip sequential mode?

736


How can values be passed from the job stream to an executable program?

867


Explain the function of //cntl statement?

649


What is the function of //cntl statement?

827


what is use of dsn parameter in dd statement?

666


What is inspect and what is it used for?

530


what are the differences between and exec cics xctl and exec cics start command?

674


Explain packages.

655


What is drop table?

580