Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Interview questions in Covansys

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
Gangaraju

New User


Joined: 15 Dec 2005
Posts: 6

PostPosted: Thu Dec 15, 2005 3:55 pm    Post subject: Interview questions in Covansys
Reply with quote

Hi, these are my questions asked in a Covansys interview:

1. How to create a PDS through JCL.
2. Can you edit the key in KSDS.
3. How to pass the parm parameter in cataloged procedure.
4. In GDG what is the main difference between EMPTY and NOEMPTY.

Thanks,
G.Raju
Back to top
View user's profile Send private message

khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

PostPosted: Thu Dec 15, 2005 4:04 pm    Post subject: JCL interview
Reply with quote

Hi ,

Quote:
1. How to create a PDS through JCL.

Code:

  //JOB
 //STEP1 EXEC PGM=IEFBR14
 //DD1    DD DSN=DSNNAME,SPACE=(TRK,(1,1,1)),UNIT=SYSDA,
 //                DCB=(DSORG=PO,LRECL=80,RECFM=FB,BLKSIZE=800)
 //                DISP=(NEW,CATLG,DELETE)
 //


Quote:
2. Can you edit the key in KSDS.

I don't think so.. you should drop the file and should create the file again.

Quote:
3. How to pass the parm parameter in cataloged procedure

USE PARAM keyword.

Quote:
4. In GDG what the main difference between EMPTY and NOEMPTY

NOEMPTY is used such that uncataloging oldest generation of a GDG once the limit is reached.
Back to top
View user's profile Send private message
i413678
Currently Banned

Active User


Joined: 19 Feb 2005
Posts: 112
Location: chennai

PostPosted: Mon Jan 02, 2006 8:34 pm    Post subject: NOEMPTY and EMPTY
Reply with quote

Hi,

I think NOEMPTY uncatalogs the oldest generation and EMPTY uncatalogs all the generations whever limit exceeds.

correct me if I am wrong.

one more doubt khmarutheens reply......is it PARAM or PARM.


pavan
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Jan 02, 2006 11:58 pm    Post subject:
Reply with quote

1) I agree w/KAK

2) Copy the rec to the correct pos in the file based on the new key value, then change the key to the new key value. Delete the orig rec.

3) Usually you specify it as a symbolic (E.G. PARM=&MYPARM) in the proc, then at execution, code:
// EXEC PROC=MYPROC, MYPARM=ABC

4) I agree w/I413678
Back to top
View user's profile Send private message
sudheer_kumar

New User


Joined: 27 Dec 2005
Posts: 16

PostPosted: Wed Jan 04, 2006 6:06 pm    Post subject:
Reply with quote

Hi friends,
Another possible solution for Question1:
Use the IEBGENER utility as shown below:
Code:

//STEP040  EXEC PGM=IEBGENER                                 
//SYSUT1   DD DUMMY,                                         
//            DCB=(LRECL=80,BLKSIZE=0,RECFM=FB,DSORG=PS)           
//SYSUT2   DD DSN=File_Name,                 
//         DISP=(NEW,CATLG,DELETE),                           
//         UNIT=SYSDA,                                       
//         SPACE=(CYL,(2,2),RLSE),                           
//         DCB=(LRECL=80,BLKSIZE=0,RECFM=FB,DSORG=PS)         
//SYSPRINT DD SYSOUT=*                                       
//SYSOUT   DD SYSOUT=*                                       
//SYSIN    DD DUMMY
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Jan 06, 2006 5:22 am    Post subject:
Reply with quote

Hi Sudheer.

The advantage that KAK's solution has over yours is that IEFBR14 uses only a few Assembler insructions to execute (it was only 1 at one time).

Gener will execute all its initializing code open and close both the IP & OP files, issue msgs, etc.

If it creates a file that can be read successfully even if it's empty, then it may be worth the overhead.

Does it?

Thanx and
Back to top
View user's profile Send private message
vinodmaanju

New User


Joined: 10 May 2005
Posts: 28
Location: Pune

PostPosted: Tue Jan 10, 2006 12:07 am    Post subject:
Reply with quote

HI,


1. Using IEFBR14 utility we can create.
2. Yes if you r talking about key length and offset than we can edit it with ALTER command using IDCAMS utility.
3 There are two ways to pass value in cataloged procedure 1. using overriding Example:
//step exec proc=procname,parm.stepname= value ( if u dont specify stepname with PARM then it will be applicable all steps in procedure.
2. using Symbolic Name ---- agree with MMWIFE

4. I agree with I413678
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Viewing executing process in NDM .. q... Debb.Brant IBM Tools 0 Wed Dec 14, 2016 10:55 pm
No new posts INCLUDE condition questions van bui DFSORT/ICETOOL 1 Thu Jun 30, 2016 9:52 am
No new posts SAS Programming - Basic Questions Techelm All Other Mainframe Topics 3 Fri Mar 18, 2016 10:53 pm
No new posts Where can i find Interview questions ... Elixir Mainframe Interview Questions 4 Sat Feb 20, 2016 12:38 am
This topic is locked: you cannot edit posts or make replies. Mainframe interview on 10th Oct 2015 ... kotesh Mainframe Jobs 0 Thu Oct 08, 2015 5:21 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us