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
 

 

COBOL/VSAM/JCL questions

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: COBOL/VSAM/JCL questions
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    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 Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts VSAM RLS=NRI while doing IDCAMS sheersh JCL & VSAM 1 Tue Mar 07, 2017 1:55 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm


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