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 Interview questions

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

New User


Joined: 31 Mar 2004
Posts: 4

PostPosted: Mon Apr 19, 2004 12:25 pm    Post subject: COBOL Interview questions
Reply with quote

1) how to define the files refered to in a subprogram.?

2) how can a job is submit from a cobol proram?

3) What is the use of USAGE IS POINTER ? how can we use it?

4) how a calls makes between two VS COBOL II programs-under CICS?
Back to top
View user's profile Send private message

bluebird

Active User


Joined: 03 Feb 2004
Posts: 127

PostPosted: Mon Apr 19, 2004 4:02 pm    Post subject:
Reply with quote

2) you should define a file as length 80 (file section)
the write JCL statement to it (in procedure division) to this file.
(don't forget to declare you output record as 80)

1) can u be clearer ?
here is an answer from what I understand :
just define then as in a normal pgm.
Back to top
View user's profile Send private message
mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 238
Location: USA

PostPosted: Mon Apr 19, 2004 4:24 pm    Post subject:
Reply with quote

Hello mohideen,

1) Use the file name used in program in the RUN JCL.

2) http://ibmmainframes.com/expertforum/viewtopic.php?t=132

3) COBOL Programming Guide Search for USAGE IS POINTER clause

Hope this helps,

Regards
Mayuresh Tendulkar
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Apr 19, 2004 7:19 pm    Post subject:
Reply with quote

Hi mohideen,

2) If you plan on executing the JCL built in the pgm you shouls write it to an 80 byte dataset defined as //... DD SYSOUT=(,INTRDR).

3) The pointer feature is used to manage linked lists. You can read about this in the Reference Mdtendulkar gave you. A more popular use of the feature is to navigate system control blocks to access system info like ds names, step/job names, dataset info, JES info and the like.

Regards, Jack.
Back to top
View user's profile Send private message
leo

New User


Joined: 27 Apr 2004
Posts: 2
Location: brazil

PostPosted: Tue Apr 27, 2004 6:16 am    Post subject:
Reply with quote

hi!

4) dont use "call".

instead use "link" (exec cics link ...)

or use "xctl" (exec cics xctl ...)

the diference between them is link beheaves just like call, ie. at the end of the called pgm the cics returns the control to the clling pgm; the xctl
dont returns.

that's it!
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 XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm


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