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

kanbay interview question


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

New User


Joined: 14 May 2005
Posts: 64
Location: chennai

PostPosted: Thu Jun 30, 2005 8:13 am
Reply with quote

ANSWER THIS WHAT HAPPENS WHEN YOU CODE SYSIN * AND PASS PARAMETER TO AN INSTREAM PROCEDURE.

will iti give a 1)compilation error .2) runtime error 3)or other error (if other plzz let me know that )

this is aquestion asked in kanbay .



how will you count the no of records in a ksds file ?

whats s722 abend code means ?

whats that sum fields in sort = copy , all , count mean ?

whats the diff b/w inline and outline perform ?
Back to top
View user's profile Send private message
MGIndaco

Active User


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

PostPosted: Mon Jul 04, 2005 10:05 pm
Reply with quote

1) If in INSTREAM PROCEDURE you have a SYSIN DD * you will have JCL ERROR for INVALID JCL STATEMENT.
You cannot define in Procedures any "DD *"!
2) You can go to ISPF 3.4 and with a LISTCA near the Cluster you will receive in REC-TOTAL row the exact number. You can also work in background using IDCAMS and the command to retrieve this information is
LISTCAT ENTRIES myksds
and in sysprint you will see the same info.

3) That error happens when the number of display of your jcl in the spool exceed the maximun allowed.

4) I don't understand your question... for what I assume... you will have a error... you cannot sum without sorting... But I can be wrong...

5) I'm not a cobol programmer and I can't help you... for what you ask seems that differences between inline and outline are made in the structure of the program that can be top down or with references in other part of program with GO TO... But I'm sure that I'm wrong...

I hope in this...
Back to top
View user's profile Send private message
karthik1680
Warnings : 2

New User


Joined: 14 May 2005
Posts: 64
Location: chennai

PostPosted: Tue Jul 05, 2005 8:13 am
Reply with quote

thank you for your answers.
what is the purpose of jes2 and jes3?
Back to top
View user's profile Send private message
ideas

New User


Joined: 25 May 2005
Posts: 52
Location: India

PostPosted: Tue Jul 05, 2005 2:24 pm
Reply with quote

S722 The maximum number or output lines has been exceeded.
1. The program contained an invalid write loop.
2. The number of output lines was underestimated in the JCL.
Back to top
View user's profile Send private message
ajay_tv2003

New User


Joined: 15 Jul 2005
Posts: 2

PostPosted: Fri Jul 15, 2005 5:43 pm
Reply with quote

SUm fileds on sort means
It will accumalte and store it in another field.
ex
SUm field(a,b,c,d): The value from c to d will be added to the value in a tob ans stored in the value a to b. (correct me if I am wrong)
Sum fields=none: will remove all the duplicate records from sortin.
Back to top
View user's profile Send private message
kumar_ngl
Warnings : 1

New User


Joined: 05 Aug 2005
Posts: 50
Location: chennai

PostPosted: Fri Aug 05, 2005 11:19 am
Reply with quote

Hi buddy

Am new to this forum and gald to be a member here,

Can anyone plz send me the cobol code which reads the VSAM file???


thanx
kumar.p.v
Back to top
View user's profile Send private message
kumar_ngl
Warnings : 1

New User


Joined: 05 Aug 2005
Posts: 50
Location: chennai

PostPosted: Fri Aug 05, 2005 12:53 pm
Reply with quote

hi Mg,

The differnce between the inline and outline perform is

Inline perfome:

Perform

add a to b

move b to c

end perform.

outline perform:

perform para1 to para3.

hope u can understand the diff now...

kumar.p.v
Back to top
View user's profile Send private message
MGIndaco

Active User


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

PostPosted: Fri Aug 12, 2005 11:52 pm
Reply with quote

Thank you Kumar, this will be useful for the future...
Back to top
View user's profile Send private message
sendil

New User


Joined: 30 Jun 2005
Posts: 27

PostPosted: Fri Aug 26, 2005 4:22 pm
Reply with quote

3)
S722

Explanation: One of the following output limits was exceeded:

O The output limit specified by the OUTLIM keyword on the SYSOUT DD
statement

O The job output limit specified in the LINES and CARDS parameters of
the JES2 JOBPARM statement

O The job output limit specified in the BYTES, CARDS, LINES, and PAGES
parameters on the STANDARDS initialization statement or the JES3 MAIN
statement

Example for outlim syntax
//REPORT DD SYSOUT=A,OUTLIM=70000 70,000 print lines max.
The OUTLIM parameter sets a limit on the number of records(70,000) that can be
written to a SYSOUT DD statement. If the limit is reached, the SYSOUT
limit exit routine will receive control; the job may subsequently be
cancelled with a S722 abend if the exit does not provide an exemption.
Code the OUTLIM parameter only on a DD statement with the SYSOUT
parameter.

6)
An out-line perform statement procedure name is specified.
An inl-line perform statement procedure name is omitted. The perform must be delimited by end-perform statement.

2) By using LISTCAT command
Back to top
View user's profile Send private message
sendil

New User


Joined: 30 Jun 2005
Posts: 27

PostPosted: Fri Aug 26, 2005 4:28 pm
Reply with quote

when you specfiying sort field=copy and sum field=(xxxx), the sum field will not do anything. It will give the same result as without sum field.
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 Question for file manager IBM Tools 7
No new posts question for Pedro TSO/ISPF 2
No new posts question on Outrec and sort #Digvijay DFSORT/ICETOOL 20
No new posts panel creation question TSO/ISPF 12
No new posts Sort w/OUTREC Question DFSORT/ICETOOL 2
Search our Forums:

Back to Top