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

How can you submit a job from COBOL programs


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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
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
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
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: 84
Location: In my tiny cubicle ...

PostPosted: Thu Jul 28, 2005 10:01 pm
Reply with quote

This might help:

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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top