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
 

 

How can you submit a job from COBOL programs

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

New User


Joined: 25 Jul 2005
Posts: 28
Location: Thrissur

PostPosted: Thu Jul 28, 2005 3:11 pm    Post subject: How can you submit a job from COBOL programs
Reply with quote

frnds,
Pls give me answer of dese 2 questions.
1.How can you submit a job from COBOL programs?

2.For what purpose we are using level numbers 44 & 49?
Interviewer asked me whether dere is any other purpose than
declaring group variables.
Pls giv me areply immediately,since it is an urgent.
Back to top
View user's profile Send private message

shivashunmugam Muthu

Active User


Joined: 22 Jul 2005
Posts: 114
Location: Chennai

PostPosted: Thu Jul 28, 2005 3:50 pm    Post subject: Re: intrvw qstns in cobol
Reply with quote

for your first Question

Write JCL cards to a dataset with
//xxxxxxx SYSOUT=(A,INTRDR) where 'A' is output class, and dataset should be opened for output in the program. Define a 80 byte record layout for the file.
Back to top
View user's profile Send private message
shivashunmugam Muthu

Active User


Joined: 22 Jul 2005
Posts: 114
Location: Chennai

PostPosted: Thu Jul 28, 2005 3:56 pm    Post subject: Re: intrvw qstns in cobol
Reply with quote

For your Second Q

there are only 3 leve; numbers are special 66,77 & 88. level 01 has some specific significants. Rest we have 02 - 49 level numbers are available for use. So the intreviwer must have expected this
Back to top
View user's profile Send private message
induajayrose
Warnings : 2

New User


Joined: 25 Jul 2005
Posts: 28
Location: Thrissur

PostPosted: Thu Jul 28, 2005 8:29 pm    Post subject: Re: Interview Questions in cobol
Reply with quote

frnd,
Can u make ur first answer more elaborate.parameter INTRDR
is used here for what pupose?Can u give de coding if it is possible.
Back to top
View user's profile Send private message
Prandip

New User


Joined: 04 Mar 2005
Posts: 85
Location: In my tiny cubicle ...

PostPosted: Thu Jul 28, 2005 10:01 pm    Post subject: Re: Interview Questions in cobol
Reply with quote

This might help:

http://ibmmainframes.com/viewtopic.php?t=2948&highlight=intrdr
Back to top
View user's profile Send private message
induajayrose
Warnings : 2

New User


Joined: 25 Jul 2005
Posts: 28
Location: Thrissur

PostPosted: Thu Jul 28, 2005 11:05 pm    Post subject: Re: Interview Questions in cobol
Reply with quote

frnds,
Thank you for ur reply.
regards,
indu
Back to top
View user's profile Send private message
jayaprakashr
Currently Banned

New User


Joined: 23 Jul 2005
Posts: 6
Location: bangalore

PostPosted: Fri Jul 29, 2005 1:57 am    Post subject:
Reply with quote

hi,

44 is using for declaring the variables as a group level or elementary level.

49 is using for to declare the null indicator & varchar.
Back to top
View user's profile Send private message
jayaprakashr
Currently Banned

New User


Joined: 23 Jul 2005
Posts: 6
Location: bangalore

PostPosted: Fri Jul 29, 2005 2:05 am    Post subject:
Reply with quote

2.
JOB: //STEP1 EXEC PGM=MAINPGM
//DD1 DD DSN=JP.TEST,DISP=SHR
//JCLDD DD SYSOUT=(*,INTRDR)


PROGRAM:MAINPGM
SELECT JCLFILE ASSIGN TO JCLDD
FD JCLFILE.
01 JCL-REC PIC X(80).
OPEN OUTPUT JCLFILE.
MOVE '//TESTJOB JOB 1111' TO JCL-REC.
MOVE '//STEP01 EXEC PGM=IEFBR14' TO JCL-REC.
CLOSE JCLFILE.
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 Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm


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