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
 

 

TCS Interview question asked on 25 th of September

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

New User


Joined: 28 Jul 2005
Posts: 58

PostPosted: Mon Sep 26, 2005 11:31 am    Post subject: TCS Interview question asked on 25 th of September
Reply with quote

Hi friends,

The foll are the Questions i have faced.

1. Assume there is one Account no field,

as : 00111100
11222111
22333322
.............
.............

99345599

the qn is:

Write a cobol pgm if the first 2 position and last 2 position of the Account no is 00 or 11 or 22.....upto 99 then reject the no else accept it.

2. There is a copybook which is used by several pgms for ex 1000.

i don't know which all are the pgms using that copy book, but i have to

search the pgms which all are using that copybook? How?

3. In CICS, after entering the Transid for ex ABCD, what is the process is going on to display the data? tell me briefly, what is happening? Assume i am going to display the mapset.

4. CEDF is Line by line execution?

5. What does Block Contains 0 Records mean?.

6. What is blksize in JCl? What is the purpose?

7. Pgm A is callin Pgm B. It is a Static call . If i didn't compile my Pgm B and if i going to submit it what will happen? in case of Dynamic call what will happen?

Can u guys please tell me the answers.

Thanks and Regards,
Suganthy.
Back to top
View user's profile Send private message

Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Mon Sep 26, 2005 12:14 pm    Post subject: Re: TCS Interview question asked on 25 th of September
Reply with quote

HI,


Quote:
search the pgms which all are using that copybook? How?


Use 3.14 option

Quote:
6. What is blksize in JCl? What is the purpose


Specifies the maximum length, in bytes, of a block

The value specified for BLKSIZE directly affects the amount of space obtained for data sets allocated in records, and for data sets allocated in blocks where the block length (blklgth) is zero.

Hope this helps

Regards

Rupesh
Back to top
View user's profile Send private message
suganthyprabha

New User


Joined: 28 Jul 2005
Posts: 58

PostPosted: Mon Sep 26, 2005 12:40 pm    Post subject: Re: TCS Interview question asked on 25 th of September
Reply with quote

Hi Rupesh,

Thanks for ur reply,

I am having one doubt in using 3.14 option.

If i want to search string then i can use that option, but if i want to find out the member s which all are using particular copybook how will u mention it in 3.14.

Please let me know abt this.

Thanks and Regards,
Suagnthy.
Back to top
View user's profile Send private message
sathish_rathinam

New User


Joined: 22 Aug 2005
Posts: 59
Location: india

PostPosted: Mon Sep 26, 2005 1:04 pm    Post subject:
Reply with quote

hi Suganthy,

7. In the case of static call ,the calling pgm is linkedited into the called pgm once u compile the calling pgm.so u will not get any abend for static call if ur not compiling the called pgm.
In the case of dynamic call, the calling pgm and called pgm exist as seperate load modules so u must compile both of them.If u fail to compile the called pgm ,u will get S806 abend load module not found.

regards,
sathsh
Back to top
View user's profile Send private message
ikumar

New User


Joined: 02 Aug 2005
Posts: 81

PostPosted: Mon Sep 26, 2005 3:20 pm    Post subject: Re: TCS Interview question asked on 25 th of September
Reply with quote

Question 1:
I think, you can validate the account no in this way,

Assuming your account number is 9(10). (Numeric field).

if (accno(1:1) <> accno(2:1)) OR (accno(9:1) <> accno(10:1))
Accept the Record
Else
Reject
End-if

Any Suggestions on this....

3) CICS would check PCT table for transid ABCD, and looks at the corresponding mapset/program name. And then it checks PPT table to see where the mapset/program load module resides...and it loads the program into address space for execution.

4) I dont think CEDF is line by line execution. You have got to enter CICS
commands while debugging one by one as present in your program....it executes all the lines at one time that are present in between the CICS commands. You can use it to follow the internal flow from one CICS command-level statement to another.
Correct me if i am wrong...

5) If you want to set block size explicitly, and for the flexibility of your
program, as per the guidelines itz better to follow by coding BLOCK CONTAINS 0 RECORDS in your source program. Also you code the same for existing blocked datasets. Also sometimes you want to allow z/OS to supply a system-determined block size, to use such feature u must code this.

6) when you want to explicitly set the block size, then you have to code BLKSIZE in your jcl DD statement.

Please correct me if i am wrong anywhere...

Cheers,
Kumar.
Back to top
View user's profile Send private message
suganthyprabha

New User


Joined: 28 Jul 2005
Posts: 58

PostPosted: Mon Sep 26, 2005 4:10 pm    Post subject: Re: TCS Interview question asked on 25 th of September
Reply with quote

Thank u so much Kumar and Sathish.

Thanks and Regards,
Suganthy.
Back to top
View user's profile Send private message
ikumar

New User


Joined: 02 Aug 2005
Posts: 81

PostPosted: Mon Sep 26, 2005 5:01 pm    Post subject: Re: TCS Interview question asked on 25 th of September
Reply with quote

Hi Suganthy,

in my first question answer, before using reference modification, u have to move numeric account number "9(10)" to alphanumeric variable x(10) and then use that if-else condition. Missed this point before.

Thanks,
Kumar.
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 QUESTION: RETURN CHANNEL pahiker CA Products 21 Thu Apr 20, 2017 12:31 am
No new posts The Last Two Question For You To Ask ... CaptBill Mainframe Interview Questions 0 Fri Apr 14, 2017 5:42 am
No new posts Asynchronous CICS Processing Question moezbud CICS 1 Mon Mar 06, 2017 6:13 pm
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm


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