how to invoke subprogram in jcl?

Answer Posted / magician

just replace "subprogram" with "proc" - and it will be O'k.
e.g.
//MYJOB JOB
//*
//MYSAMPLE PROC MYPARAM=DEFAULTVALUE
//MYSUBPRO EXEC PGM=MYSUB
//... DD-cards
//MYSAMPLE PEND
//*
//MYSTEP EXEC MYSAMPLE,MYPARAM=FOREXAMPLE

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

in options (main) , what is meaning of main . if u not used main what will happen? After compiling, os will not understand where to load and execute from

1884


What is z os in mainframe?

726


When are scope terminators compulsory?

754


We have an output dataset in job with disp parameter as shr.

694


Name and explain the type of locks?

726






how can you define a dataarea(DTAARA) IN RPG? Which spec you define it C-spec/D-spec?

1592


can any one exaplin about Decision Tables in test region with good example

2462


Name the various types of tables spaces.

785


what are the common errors that occured while programming in AS/400?

1270


My program has an array defined to have 10 items. Due to a bug, I find that even if the program access the 11th item in this array, the program does not abend. What is wrong with it?

806


suppose if you added a coloumn to db2 table, How would it be the Impact analysis?

1701


Tandem COBOL Interview questions (on TACL,SCOBOL,ENSCRIBE,PATHWAY0

23236


How are type 1 and type 2 indexes different?

746


Explain a linkage segment

737


How many bytes does a s9(7) sign trailing separate field occupy ?

814