Interview Question

sinmani
Posts: 93
Joined: Thu Mar 22, 2012 10:02 am
Skillset: COBOL
CICS
JCL
DB2
VSAM
IMS
Referer: INTERNET

Interview Question

Postby sinmani » Wed May 30, 2012 1:48 pm

1. Suppose I have a Program A and another progam B.
It is known that Program A calls program B. But I do not have the source with me.
So how can I find out whether the call is static or dynamic.

Ans : Don't know.

2. What happens if I do not pass length of data while passing data using PARM parameter from JCL to program.

Ans : Defualt 100 lentgh considered.

3. what happens if I do not define length parameter in the linkage section while passing data
from JCL to program using PARM parameter.

Ans : Defualt 100 lentgh considered.

4. suppose I position my cursor at a partiicular field by using any one of the ways ( using CURSOR command, or moving -1 to the length of the respective
field or using IC option ) but still the cursor is not positioned at that field.
What could be the possible problem??

Ans : Don't know.

Seniors could you please provide some answers
-----------------------------------------
As long as you think you are a student, you are doing well.
The day you consider yourself as the master of the game..........well

BillyBoyo
Global moderator
Posts: 3805
Joined: Tue Jan 25, 2011 12:02 am
Skillset: Easytrieve Plus, Cobol, Utilities, that sort of stuff
Referer: Google

Re: Interview Question

Postby BillyBoyo » Wed May 30, 2012 2:38 pm

1. Look at the output from the linkedit/binder or, if not available as well as the source, run AMBLIST for the load-module in question and look at that output. There are ways by browsing the loadmodule.

2. Since the operating system does all the "passing" when you specify a PARM in the JCL, the question is meaningless as stated.

3. At the very "best" you will "loose" the first two bytes of your data and have unwanted data depending on how you've defined your field. At worst, if trying to use the length, you'll get an abend (S0C4 is most likely) or you'll pick up, and probably truncate later, a lot of irrelevant stuff, and loose the first two bytes of your data.

4. Not a clue.

sinmani
Posts: 93
Joined: Thu Mar 22, 2012 10:02 am
Skillset: COBOL
CICS
JCL
DB2
VSAM
IMS
Referer: INTERNET

Re: Interview Question

Postby sinmani » Thu May 31, 2012 4:09 pm

BillyBoyo wrote:1. Look at the output from the linkedit/binder or, if not available as well as the source, run AMBLIST for the load-module in question and look at that output. There are ways by browsing the loadmodule.


What is AMBLIST ??

look for what in the output??? What will tell us that it is dynamic or statuc call?? What is value for static and what for dynamic??

Could you please clarify??
-----------------------------------------
As long as you think you are a student, you are doing well.
The day you consider yourself as the master of the game..........well

Robert Sample
Global moderator
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
Referer: other forum
Location: Dubuque, Iowa, USA

Re: Interview Question

Postby Robert Sample » Thu May 31, 2012 4:22 pm

AMBLIST is an IBM utility program (hence available at all sites) which lists information about load modules, including the Assembler CSECTs that make up the load module. A statically called program will be included in the load module and hence will show up on the AMBLIST output.


  • Similar Topics
    Replies
    Views
    Last post