GeekInterview.com
Series: Subject:

Mainframe FAQs

Showing Questions 1 - 20 of 104 Questions
First | Prev | | Next | Last Page
Sort by: 
 | 

Soc7 abend record identification

Asked By: sekharjchandra | Asked On: Oct 22nd, 2008

How to identify the record that caused the soc7 abend in a batch program? Suppose there are 1000 records in the input file. How can we find the exact record?

Answered by: santosh siliveru on: Apr 11th, 2012

The diagnostics provided with the S0C7 will help you identify which value is not valid. If your site has Abend Aid or one of the other abend analysis tools Index or Subscript is uninitialized, Incorr...

Answered by: fazil on: Mar 24th, 2009

If the cobol program is compile with option FDUMP. you can see the input record which caused the abend CEEDUMP and also the field which cause the error. Something like this.QTY-ACCEPTED  &nb...

Pass values from cobol to jcl

Asked By: sudhakarvunnam | Asked On: Aug 17th, 2010

How can we pass values from cobol to jcl?

Answered by: mannurusrinivasulareddy on: Mar 15th, 2012

we can pass values from COBOL to jcl is only through Files
through return-code we can pass only return code through COBOL to jcl

synt:- Move 16 to Return-code and this can be access in jcl through cond parameter of the jcl step.

Answered by: madhavi on: Jan 19th, 2012

The above 2 ways are to send data from JCL to COBOL not from COBOL to JCL

Access vsam from cics

Asked By: sprabodhini | Asked On: May 5th, 2008

How to access vsam from cics?

Answered by: vinay kona on: Nov 16th, 2011


if you want to use the VSAM in CICS ,first we need to register the file into cics online table called FCT (FILE CONTROL TABLE) . for that we have to write like.,
CEDA DEF FILE(FILENAME) G(VVVV)
CEDA DEF FILE(FILENAME) G(VVVV)

THEN IT WILL BE READY FOR EXECUTING IN ONLINE

Answered by: lalit.kapila on: Jan 30th, 2009

Same as mapset we have to define and install the File in CICS by using CEDA command.

Read sequential file

Asked By: vijaysimha | Asked On: Jan 21st, 2009

How to read sequential file in reverse order?

Answered by: mannurusrinivasulareddy on: Oct 10th, 2011

open file in reverse

i.e OPEN input file-name Reverse

Answered by: mf.vannan on: Aug 12th, 2010

Hi guys

input file
======

a
n
d

to get outupt
==========

d
n
a


if you use the desc sort, output will be display as z to a

if you insert the sequence no on file, than sort to get reverse order.

syntax is

OUTREC = (1, 5, SEQNUM, 5, ZD)

sequence no will be stored in 6 to 10



Regards
Rasipuram Manivannan M

Sort data in file

Asked By: ravtej556 | Asked On: Jun 27th, 2010

In cobol, how to sort data in a file without using the sort command?

Answered by: mannurusrinivasulareddy on: Oct 5th, 2011

ws-rec is an occurs clause variable name. "cobol perform sort-para varying I from 1 by 1 until I > (no of records) after J from I by 1 until J > (no of r...

Answered by: hemanth.pesce on: Sep 29th, 2011

Move all the records to array table.
then compare with each other,then swap that two records.
like IF ARRAY(I) > ARRAY(J)
MOVE I TO WS-DATA
MOVE J TO I
MOVE WS-DATA TO J
ELSE
COMPUT I = I + 1
PERFOEM SAME PARA UPTO FS = 10

How to find the total record occurrence count ?

Asked By: katar_s | Asked On: May 5th, 2011

Answered by: mannurusrinivasulareddy on: Oct 5th, 2011

Here is the answer for your question "cobol IDENTIFICATION DIVISION. PROGRAM-ID. RECCNT. ENVIRONMENT DIVISION. INPUT-OUTPUT SECTION. FILE-CONTROL. SELECT IN-FILE1 ASSIGN TO DD1...

Maximum size of dfhcommarea

Asked By: kunalkishore | Asked On: Apr 16th, 2010

What can be the maximum size of dfhcommarea?

Answered by: hemanth.pesce on: Sep 29th, 2011

64k

Answered by: ravikumar.m on: May 12th, 2011

64 k

What does return code code 0099 mean?

Asked By: sumana sarkar | Asked On: Nov 7th, 2007

One of my jcl steps returns the code 0099 and my job fails.

Answered by: Vijay on: Sep 1st, 2011

Is this a FTP job? If so, the reason for the abend would be Connection to server interrupted or FTP timed out.

Answered by: teddy on: Dec 28th, 2007

if you are working with files or db2 may be a record in it is locked. just relese the lock and try again.

Sort duplicates in dataset

Asked By: Mainframeguy | Asked On: Mar 26th, 2008

How do I use sort to copy duplicates in a dataset to another

Answered by: siddup143 on: Aug 6th, 2011

by using soft utility we can copy the duplicate regards of one file to another file.

Code
  1.   //SYSIN DD *
  2.       SORT FIELDS=COPY
  3.       SUM FIELDS=NONE,XSUM
  4.  //SORTXSUM DD DSN=OZA040.PC.DUP.FILE,DISP=OLD
  5. /*

Answered by: Vijay1979 on: Mar 9th, 2011

//DDName EXEC PGM=SORT//SORTIN DD DSN=XXXXXXXXXXXXXXXXX,// DISP=SHR//SORTOUT DD DSN=XXXXXXXXXXXXXXXXXXXX,// DISP=(NEW,CATLG,DELETE),// UNIT=XXXXX,SPACE=(XXX,(XX,XX),XXXX),// DCB=(*.SORTIN) Output file...

How to recover a gdg version when it is deleted?

Asked By: kumar | Asked On: Oct 15th, 2007

Answered by: katar_s on: May 6th, 2011

If u know vol serial number , u can get it by using the VOL=SER= VALUE

Insert number of row into table

Asked By: ysrinu87 | Asked On: Feb 4th, 2011

How to insert number of row into table in cobol db2 programe?

Match data from table in db2

Asked By: RahulGaikwad | Asked On: Jan 8th, 2011

How to match the data from table in db2 to application prog in cics?

Mainframe source definition

Asked By: sandi | Asked On: Dec 10th, 2010

Which files are used as source definition to support mainframe source data?

Test jcl without submitting it.

Asked By: Esolly | Asked On: Oct 6th, 2010

How can I test jcl without submitting it? Like scanning it b4 submitting.

Answered by: Madhulathamadduri on: Nov 23rd, 2010

Just give prep or !jck in the command line it will show the errors in the jcl

Answered by: tag_tushar on: Oct 10th, 2010

You can use a JOB card keyword parameter TYPRUN=SCAN. This parameter suppresses the execution of the JCL & check's your JCL for errors. You will get a MAXCC=4 or 8 or 12 if there are any error in your...

How to submit a jcl from cobol program?

Asked By: lakshmi | Asked On: Oct 9th, 2007

Answered by: tag_tushar on: Oct 6th, 2010

Name of Jcl to be submitted by COBOL program: ABC.XYZ.JCL1COBOL program Name: JCLCOBID DIVISION.PROGRAM-ID. 'JCL-COBOL'.ENVIRONMENT DIVISION.INPUT-OUTPUT SECTION.FILE-CONTR...

Answered by: senthil.ads on: Apr 29th, 2009

Let us the program is TEST and JCL you want to submit from program is A.B.C(MEM).//STEP1    EXEC  PGM=TEST//INPUT    DD      DSN=A.B.C(MEM)/...

How to write jcl if the cobol program is connected with db2 database and some of the db2 statements are written in sub-program. Assume the call is a static call ?

Asked By: karthikeyan | Asked On: Nov 24th, 2007

Answered by: tag_tushar on: Oct 3rd, 2010

Name of the main program            = ABC.XYZ.COBDB2(MAINPGM)Name of the sub-routine program = ABC.XYZ.COBDB2(SUBPGM)Pre-compile JCL://JOBNAME  JOB NOTIFY=...

Sequential file handling

Asked By: modi.uttam | Asked On: May 22nd, 2010

Is it possible to delete a record from a sequential file in cobol program? If yes, explain how?

Answered by: dandusuneel on: Sep 27th, 2010

As of my concern, sequential files cannot be deleted. Means we cannot delete sequential files.

Answered by: sriraj1122 on: Jun 27th, 2010

You can read the records in the sequential order and process each record.  When you get the desired record then just use delete to delete that particular record.


Hope this helps you :P

Job card parameters

Asked By: shamsheer505 | Asked On: Sep 23rd, 2010

What are the mandatory parameters in the job card?

Answered by: tag_tushar on: Sep 24th, 2010

The only mandatory field in a job card parameter is the jobname the rest of the parameter are installation defined...Ex://JOBNAME JOB //STEP EXEC PGM=IEFBR14//DD1 DD DSN=USERID.ABC.XYZ,DISP=(NEW,...

What is the difference between using and and also, when using in evaluate in cobol?

Asked By: skmahajan | Asked On: Oct 21st, 2007

Answered by: tag_tushar on: Sep 23rd, 2010

Let me refraze your question...The condition (AND/ALSO) & OR are 2 different things:Ex1: OREVALUATE TRUEWHEN GENDER = 'M' OR 'F' PERFORM ....WHEN OTHEREND-EVALUATE.Ex2: ANDEVALUATE...

Vsam master catalogs

Asked By: psmadhusudhan | Asked On: Dec 22nd, 2009

How many active vsam master catalogs can exist in an operational mvs system

Answered by: arjungutha on: Sep 12th, 2010

For a monoplex system, there is only one master catalog. If your installation has multiple, interconnected systems, the master catalogs of each system can be connected to the master catalogs of each o...

First | Prev | | Next | Last Page

 

 

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Career Counselling

 Have Career Question?

 Ask Chandra

 Ask Only Career questions.

Follow us:
 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, click "Subscribe".