June 25, 2013

JCL Interview Questions by Experts

Collection of JCL Interview Questions by Experts asked in top companies like IBM, HP, CTS, TCS.

Q: Why do you use a CONTROL CARD?

A: A CONTROL CARD can be a member of a PDS or a sequential dataset and is used for storing the date fields, definitions of VSAM files etc., We use CONTROL CARD because we cannot use an in-stream procedure in a procedure. Generally you will be calling a PROC from your JCL and you cannot code instream procedure in the PROC and so you will point to the dataset, which is called controlcard.

Q: How do you submit JCL via a Cobol program?
A: In your JCL define as: //JOBA JOB 1111,JOB1 //STEP01 EXEC PGM=PROG1 //ddname DD SYSOUT=(*,INTRDR)....and your COBOL (PROG1) should look like this: SELECT JCL-FILE ASSIGN TO ddname. Open this file and write the JCL statements into this file. Example: MOVE '//TESTJOB JOB 1111,VISVEISH' TO JCL-REC.MOVE '//STEP01 EXEC PGM=IEFBR14' TO JCL-REC.and close this file. Then TESTJOB will be submitted.

Q: How do you submit a JCL under CICS environment?
A: Pass all the JCL codes to a COBOL variable (should be declared using OCCURS clause) and then write the line one by one to the spool using CICS commands like SPOOLClose, SPOOLOpen and SPOOLWrite. For more help refer CECI of CICS or CICS manual.

Q: What is the parameter to be passed in the job card for the unlimited time, irrespective of the job classA: TIME=1440

  • JCL Technical Interview Questions Answers and Explanations
  • JCL Interview Questions and Answers-3
  • JCL Interview Questions and Answers-2
  • JCL Interview Questions and Answers-1
  • JCL Interview Questions and Answers

  • Q: What is the parameter to be passed in the job card for the unlimited time, irrespective of the job class

    Q: Define COND parameter in JCL?
     COND is a condition parameter, consists of 2 subparameters, 1st - return code from the previous step, 2nd - condition. If COND is true, the step on which COND is coded will be BYPASSED. It is compared with system return code of previous step //STEP1 EXEC PGM=ABCD //STEP2 EXEC PGM=XYZ, cond=(4,lt) STEP 2 will be executed when system return code of step1 is less than 4.

    Q: What is meant by S0C-07 system ABEND codes
     S0C7 - Data exception error - you will get it whenever you are trying to move the low values or spaces into the numeric field, or compare the numeric fields with low values, or try to do some arithmetic operations on the low values. To avoid this you have to always initialize the numeric fields otherwise they will contain the low values.

    Q: How to pass the temp dataset form one JOB step to another?
     By specifying the DISP as PASS for the temp dataset

    Q: Write a JCL to execute a Job by 7:00 AM on Jan 20,1986? 

    Read More

    June 24, 2013

    Datastage Interview Questions and Answers Collection

    Collection of Datastage Interview Questions and Answers.

    How did you handle reject data?
     Typically a Reject-link is defined and the rejected data is loaded back into data warehouse. So Reject link has to be defined every Output link you wish to collect rejected data. Rejected data is typically bad data like duplicates of Primary keys or null-rows where data is expected.

    If worked with DS6.0 and latest versions what are Link-Partitioner and Link-Collector used for? 
    Ans: Link Partitioner - Used for partitioning the data.
    Link Collector - Used for collecting the partitioned data.

    What are Routines and where/how are they written and have you written any routines before?
     Routines are stored in the Routines branch of the DataStage Repository, where you can create, view or edit. The following are different types of routines:
    1) Transform functions
    2) Before-after job subroutines
    3) Job Control routines

    What are OConv () and Iconv () functions and where are they used?
     IConv() - Converts a string to an internal storage format
    OConv() - Converts an expression to an output format.

    How did you connect to DB2 in your last project?
    Using DB2 ODBC drivers.

    Explain METASTAGE?
     MetaStage is used to handle the Metadata which will be very useful for data lineage and data analysis later on. Meta Data defines the type of data we are handling. This Data Definitions are stored in repository and can be accessed with the use of MetaStage.

    Do you know about INTEGRITY/QUALITY stage?
     Qulaity Stage can be integrated with DataStage, In Quality Stage we have many stages like investigate, match, survivorship like that so that we can do the Quality related works and we can integrate with datastage we need Quality stage plugin to achieve the task.

    Explain the differences between Oracle8i/9i?
     Oracle 8i does not support pseudo column sysdate but 9i supports
    Oracle 8i we can create 256 columns in a table but in 9i we can upto 1000 columns(fields)

    How do you merge two files in DS?
     Either use Copy command as a Before-job subroutine if the metadata of the 2 files are same or create a job to concatenate the 2 files into one if the metadata is different.

    What is DS Designer used for?
     You use the Designer to build jobs by creating a visual design that models the flow and transformation of data from the data source through to the target warehouse. The Designer graphical interface lets you select stage icons, drop them onto the Designer work area, and add links.

    What is DS Administrator used for?
    The Administrator enables you to set up DataStage users, control the purging of the Repository, and, if National Language Support (NLS) is enabled, install and manage maps and locales.

    What is DS Director used for?
    : datastage director is used to run the jobs and validate the jobs.
    we can go to datastage director from datastage designer it self.

    What is DS Manager used for?
    : The Manager is a graphical tool that enables you to view and manage the contents of the DataStage Repository

    What are Static Hash files and Dynamic Hash files?
     As the names itself suggest what they mean. In general we use Type-30 dynamic Hash files. The Data file has a default size of 2Gb and the overflow file is used if the data exceeds the 2GB size.

    What is Hash file stage and what is it used for?
    Used for Look-ups. It is like a reference table. It is also used in-place of ODBC, OCI tables for better performance.

    How are the Dimension tables designed?
     Find where data for this dimension are located.
    Figure out how to extract this data.
    Determine how to maintain changes to this dimension.
    Change fact table and DW population routines.

    Read More

    Funny Tweets

    Facebook Covers



    Exbay | Copyright © 2009