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 Why myself doing Package Bind always ... Susanta DB2 5 Thu Mar 02, 2017 10:47 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm


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