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

Mainframe Interview Questions


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

New User


Joined: 21 Jun 2004
Posts: 33
Location: Andorra

PostPosted: Tue Jun 21, 2005 8:09 am
Reply with quote

hi friends,

some int ?'s r below,plase as me.

1.In Job i have 50 steps, the GDG dataset is creating in 1st step, the same GDG is brefer in 25th step. I got abend in 24th step. Is it possible to
restart from 25th step. If possible what are the changes we have to do.

2.When mapfail codition will occur

3.If deadlock occurs in u'r program, how come u know which program or
user trying to access the same resources which is requested by u.

4.How to see recently executed jobs information


5.I want to see the jobs which are executed by other user. Where will
get those information.

6.what will u do to edit a COMP-3 value in a file


7.In a file 50 records are there, i want the records from 50th byte to
80th byte. How can i get it.

8. In Cobol, the end user will enter lowercase letters in the screen
how will u covert it to uppercase.

9.What is the difference between copybook and Include

bye
Back to top
View user's profile Send private message
shannu

New User


Joined: 01 Jun 2005
Posts: 17
Location: bangalore

PostPosted: Tue Jun 21, 2005 2:15 pm
Reply with quote

Hi,

I will be giving answers for some of question if any thing wrong please correct me
thanks
Sgannu.

.In Job i have 50 steps, the GDG dataset is creating in 1st step, the same GDG is brefer in 25th step. I got abend in 24th step. Is it possible to
restart from 25th step. If possible what are the changes we have to do.


You can restart from the 25th stem by coding restart=25th stepname in the job card.

2.When mapfail codition will occur

mapfail will occur when u recieve a map with no values i.e all the fields in that map are blanks.

3.If deadlock occurs in u'r program, how come u know which program or
user trying to access the same resources which is requested by u.

I dontknow exactly if u come across dataset in use and press F1 key two times, then u will come to know the userid of the person who is using that dataset.

4.How to see recently executed jobs information

You can checkit out in the spool.


5.I want to see the jobs which are executed by other user. Where will
get those information.

6.what will u do to edit a COMP-3 value in a file

go to profile in ur file and make hex-on there.


7.In a file 50 records are there, i want the records from 50th byte to
80th byte. How can i get it.

You should handle it by logic just read the records from the 50th byte to 80 th byte and skip thje remaining fields.

8. In Cobol, the end user will enter lowercase letters in the screen
how will u covert it to uppercase.

I didnt get wat u mean by end user.

9.What is the difference between copybook and Include

copybook is expanded during compilation stage whereas include is expanded during pre compilation stage.

Let me know where u encountered these types of problems.

bye
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Tue Jun 21, 2005 2:56 pm
Reply with quote

Let me correct you for the first question:
1) Use a temporary dataset or a simple dataset and cataloge your gdg at the end of your job. If you restart from 25th step you will have jcl error because if you use +1 in the previous step, after the restart the level will be the (0).

3) you must display the thread for your resource and capture the user/job that use it.

4) you can see the sysout in SDSF or in your product of archive as Beta 92 or WSF etc.

5) in SDSF use OWNER USERID and PREFIX 'job' or '*' to display all the queue of a particular USERID

7) you can do it with a sort with INREC or you can also use a IEBGENER or other tool.
Back to top
View user's profile Send private message
subbprem

New User


Joined: 20 Apr 2005
Posts: 9
Location: Chennai

PostPosted: Tue Jun 21, 2005 5:42 pm
Reply with quote

Difference between copybook and include.
------------------------------------------------------

INCLUDE MEMBERNAME is same as a COBOL COPY MEMBERNAME, but the timing is different.

COBOL COPYBOOKs get copied in at COMPILE time; DB2 INCLUDEs get copied in at precompile time.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Jun 23, 2005 6:19 am
Reply with quote

If you intend to restart a job that uses a GDG it's customary to code the relative gen number as a symbolic (e.g. &GEN1). In the original run GEN1='(+1)'. On restart change it to GEN1='(+0)'.

In a lockout situation enter at the terminal CEMT INQ TASK. I think it returns the tasks and what they are enqued on. It's been awhile; you'll have to check.
Back to top
View user's profile Send private message
thanooz

New User


Joined: 28 Jun 2005
Posts: 99

PostPosted: Tue Jul 05, 2005 5:54 pm
Reply with quote

8) IN COBOL YOU HAVE A FUNCTION
YOU R ACCEPTING THAT INTO ONE VARIABLE

FUNCTION UPPERCASE(DATEVARIBLE NAME)




IF ANY WRONG CORRECT ME
Back to top
View user's profile Send private message
bhaskar_157

New User


Joined: 27 Dec 2005
Posts: 3

PostPosted: Tue Dec 27, 2005 11:42 am
Reply with quote

Hi i have attended the Wipro interview,There asking How we can display the Comp-3 Values using program,
Can you please tel mee whats the answer.

Thanks,
Vijji
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Tue Dec 27, 2005 7:29 pm
Reply with quote

HI Vijji,


Quote:
How we can display the Comp-3 Values using program,
Can you please tel mee whats the answer.


Move the Comp-3 variable in Normal variable and display it.

Regards
Rupesh
Back to top
View user's profile Send private message
Nanda Krishna

New User


Joined: 30 Nov 2005
Posts: 19
Location: Bangalore

PostPosted: Thu Dec 29, 2005 5:06 pm
Reply with quote

3) you must display the thread for your resource and capture the user/job that use it.


MGIndaco/All,

can you explain how to display the thread.

Thanks in advance...
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 FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Mainframe Programmer with CICS Skill... Mainframe Jobs 0
No new posts How to Reformat a file using File Man... All Other Mainframe Topics 14
No new posts NDM getting stuck - mainframe/JCL All Other Mainframe Topics 13
Search our Forums:

Back to Top