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

IBM Interview questions


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

New User


Joined: 05 Dec 2005
Posts: 4
Location: india

PostPosted: Sat Jul 26, 2008 4:50 pm
Reply with quote

Hi All,

Please answer the below questions if know ...

1) How to pass more than one record in SYSIN DD *

If you pass more than one , how can we obtain the data in program


2) How to know if somebody log in CICS Region or not

Any command? to know this

3) How to concatinate two diff VB vsam files.


4) I need to copy the GDG to flat file after creation for back up, the job.At max we can generate 250 generations , if more than 250 generations, the oldest or all will delete, but I need to copy those also to sequential files.

HOw we can achive this?

5) can we send file in sysin dd *

6) can we mention executable copy books in COMPILATION JCL

7) I have requirement to increase the lengh of the perticular filed from pc 5 to pic 8. I need to change this change for 300 programs , how can I change this one time?

8) IN CICS PF7 LOGIC?

9) I have a set of sql staments in one member, How can i use this member in cobol-db2 program?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sat Jul 26, 2008 5:22 pm
Reply with quote

1. Put more than one record in the SYSIN. The record(s) are passed by the program opening SYSIN for input and reading them.

2. Look at the log to see if they signed on. Custom code can be written to determine who's logged onto a region but there's no simple command to give you this; you can identify current tasks but that only helps if the person's running a task at that moment.

3. The JCL Reference manual specifically says concatenation is for sequential or PDS files only. VSAM files cannot be concatenated.

4. Use GDG base name, which allows you to copy all generations. Once they've rolled off the GDG, they are typically deleted from the system so you cannot then back them up.

5. SYSIN is for input to a program, including system utilities. You cannot "send file" or do anything except read that data into a program.

6. Compilation JCL means you're talking about source. Source becomes executable but cannot directly refer to the executable data.

7. Use the change tool for the source code version control package you use.

8. EIBAID will be set if PF7 is hit. What your program does with this information is up to the program.

9. I don't use DB2 so no idea on this one.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat Jul 26, 2008 5:37 pm
Reply with quote

Quote:
4) I need to copy the GDG to flat file after creation for back up, the job.At max we can generate 250 generations , if more than 250 generations, the oldest or all will delete, but I need to copy those also to sequential files.

What happens to the GDG generations when the limit is reached depends on the GDG base definition parameter EMPTY / NOEMPTY.

Once again, although Robert is perfectly correct in his description of the GDG being rolled off and deleted, but this can be changed if the NOSCRATCH parameter is used in the GDG base definition. Although this is not usually the case, I have had to deal with the mess of badly defined GDG's in the past icon_eek.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sat Jul 26, 2008 6:07 pm
Reply with quote

Good point expat, I've had to deal with those issues as well. And they're not a lot of fun ... at least I did say "typically"!

Although I still wonder what
Quote:
the oldest or all will delete, but I need to copy those also to sequential files.
means in terms of "all will delete", and if they're deleted just how the O/P expects to copy them to sequential files. Which raises the question of just what the O/P thinks a GDG is, if not a sequential file? Let's not go there ... too early on a weekend for that kind of question! icon_smile.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat Jul 26, 2008 6:50 pm
Reply with quote

Quote:
at least I did say "typically"

Yes, I noticed, and have plagerised that one into the CMA folder icon_smile.gif
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 Comp interview questions Mainframe Interview Questions 5
No new posts Interview Questions on Cobol DB2 program Mainframe Interview Questions 5
No new posts The Last Two Question For You To Ask ... Mainframe Interview Questions 0
No new posts Mainframe Interview Questions CICS,CO... Mainframe Interview Questions 6
No new posts Viewing executing process in NDM .. q... IBM Tools 0
Search our Forums:

Back to Top