View previous topic :: View next topic
|
Author |
Message |
induajayrose Warnings : 2 New User
Joined: 25 Jul 2005 Posts: 28 Location: Thrissur
|
|
|
|
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 |
|
|
shivashunmugam Muthu
Active User
Joined: 22 Jul 2005 Posts: 114 Location: Chennai
|
|
|
|
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 |
|
|
shivashunmugam Muthu
Active User
Joined: 22 Jul 2005 Posts: 114 Location: Chennai
|
|
|
|
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 |
|
|
induajayrose Warnings : 2 New User
Joined: 25 Jul 2005 Posts: 28 Location: Thrissur
|
|
|
|
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 |
|
|
Prandip
New User
Joined: 04 Mar 2005 Posts: 84 Location: In my tiny cubicle ...
|
|
Back to top |
|
|
induajayrose Warnings : 2 New User
Joined: 25 Jul 2005 Posts: 28 Location: Thrissur
|
|
|
|
frnds,
Thank you for ur reply.
regards,
indu |
|
Back to top |
|
|
jayaprakashr Currently Banned New User
Joined: 23 Jul 2005 Posts: 6 Location: bangalore
|
|
|
|
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 |
|
|
jayaprakashr Currently Banned New User
Joined: 23 Jul 2005 Posts: 6 Location: bangalore
|
|
|
|
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 |
|
|
|