IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

COBOL/VSAM/JCL questions


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ayayu

New User


Joined: 21 Jan 2006
Posts: 6

PostPosted: Mon Jan 23, 2006 8:39 pm
Reply with quote

Can you please help me with the questions below? Thanks. Appreciate your help.

1) How would you override a TIME parameter to be 5 minutes, defined as TIME=10, on the EXEC card of the step STEP1 of a cataloged procedure?

2) You write a batch program to update a VSAM file from the sequential transaction file. Under what combination of conditions would you decide to do a sequential update rather than direct update?
choices:
a. transaction file is relatively small compared to the VSAM file
b. both files have comparable sizes
c. the transaction file is sorted by the same key as the VSAM file in the same order
d. the VSAM file doesn't have any alternate indexes defined

3) What COND parameter would you write to execute the second step if the first step returns 4 or less? Another words skip the second step if the first step is > 4.

4) Can you define an alternate index on the reusable cluster?

5) A COBOL Table has 10 entries, each entry is 12 bytes long. What is the displacement of the first entry in the table?

6) COBOL Table has 10 entries, each entry is 12 bytes long. What is the displacement of the second entry in the table

7) What would be the hexadecimal representation of -123.3 in the field defined as PIC S9(5)V99 COMP-3 ?

Thank you again. Need your help.
Back to top
View user's profile Send private message
Ramya A

Active User


Joined: 26 Jul 2004
Posts: 104

PostPosted: Tue Jan 24, 2006 2:08 am
Reply with quote

3)

STEP020 EXEC PGM=XXXX,COND=(4,GE,STEP010)
Back to top
View user's profile Send private message
ayayu

New User


Joined: 21 Jan 2006
Posts: 6

PostPosted: Tue Jan 24, 2006 9:53 am
Reply with quote

thank u!
hope you can help me with the other questions too...

thanks for ur help!
Back to top
View user's profile Send private message
senthils

Active User


Joined: 15 Nov 2005
Posts: 117
Location: Chennai, India

PostPosted: Tue Jan 24, 2006 10:26 am
Reply with quote

Quote:
1) How would you override a TIME parameter to be 5 minutes, defined as TIME=10, on the EXEC card of the step STEP1 of a cataloged procedure?


ANS:
//STEP10 EXEC PROC=CAT1,TIME.STEP1=5
Back to top
View user's profile Send private message
vinodmaanju

New User


Joined: 10 May 2005
Posts: 28
Location: Pune

PostPosted: Tue Jan 24, 2006 10:44 am
Reply with quote

1)
//STEP01 EXEC PROC=PROCNAME,TIME.STEP1=5

3)

//STEP02 EXEC PGM=XYZ,COND=(5,LT,STEP01)

5) 0

6) 12
Back to top
View user's profile Send private message
pa1chandak
Currently Banned

New User


Joined: 31 Jan 2006
Posts: 55

PostPosted: Tue Jan 31, 2006 4:43 pm
Reply with quote

4) Can you define an alternate index on the reusable cluster?



DEAR IT IS NOT POSSIBLE TO CREATE AN ALTERNATE INDEX
ON A CLUSTER CREATED WITH REUSE OPTION. AND IF YOU DO SO , YOU WILL NOT BE GETTING MAXXCC=0 AND COMPILER WILL NOT GIVE YOU CORRECT REASON .
SO YPU NEED TO CREATE ANOTHER CLUSTER WITHOUT REUSE OPTION TO HAVE AN ALTERNATE INDEX.


DO SEND ME THE REPLY

PAWAN C.
09822546416
pa1chandak@yahoo.com
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top