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
 

 

what happens if we run a jcl second time

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
shivakumar .b
Warnings : 1

New User


Joined: 11 May 2005
Posts: 18
Location: bangalore

PostPosted: Wed May 11, 2005 12:01 pm    Post subject: what happens if we run a jcl second time
Reply with quote

hi this is shivakumar.
i have two doubts.
1. if i have a jcl that creates a new dataset with disp=new,catlg,catlg in the first run. if i run the same jcl for second time, what could be the error code, what message we would get?
2. how to convert a dynamic call into a static call(or viceversa) in the cobol program.
plz reply me as early as possible.
regards,
shivakumar .b
Back to top
View user's profile Send private message

gnagakishore

New User


Joined: 26 Mar 2005
Posts: 25
Location: Hyderabad

PostPosted: Wed May 11, 2005 1:01 pm    Post subject:
Reply with quote

if u run the same jcl for the second time it will give error. may be NOTCAT2 indicate that duplicate entry allready exists.

call "var-name" using .......
in "var-name" u can give program name ,, then it will be static call.
call "pgm-name" usin... will be dynamic call.
WE CAN CALL PROGRAMS DYNAMIC OR STATIC USING COMPILER OPTIONS " DYNUM" OR "NODYNUM"
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Wed May 11, 2005 3:16 pm    Post subject: Re: what happens if we run a jcl second time
Reply with quote

Quote:
what could be the error code, what message we would get?



Code:
DATA SET DATA.SET.NAME
NOT DEFINED BECAUSE DUPLICATE NAME EXISTS IN CATALOG
RETURN CODE IS ...  REASON CODE IS ...
JOBNAME STEPNAME - STEP WAS NOT EXECUTED
.

One way to get rid of this is to put a FASTDEL before that step.

Regards,

Priyesh.
Back to top
View user's profile Send private message
shivakumar .b
Warnings : 1

New User


Joined: 11 May 2005
Posts: 18
Location: bangalore

PostPosted: Wed May 11, 2005 4:10 pm    Post subject: Re: what happens if we run a jcl second time
Reply with quote

Thanks gnagakishore and thanks to priyesh agarwal for u r information.
but i have one doubt,
we r using CALL varname for static call in which varname contains object module name and
we r using CALL "pgmname" for dynamic call in which we are directly entering the loadmodule name in CALL statement.
am i right?
thanks in advance
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 247
Location: Cincinnati OH USA

PostPosted: Wed May 11, 2005 6:59 pm    Post subject:
Reply with quote

I think the static/dynamic statements above are reversed.

DYNAMIC occurs if the proram name is provided in a variable, not literal, or if compiler option DYNAMIC is used.


Dave
Back to top
View user's profile Send private message
raja_sekhar007

New User


Joined: 16 May 2005
Posts: 2

PostPosted: Thu May 19, 2005 9:57 am    Post subject: Re: what happens if we run a jcl second time
Reply with quote

CALL "Literal" Using parm1,parm2....... becomes the Static call.
Where Literal is the name of the Called program name. The object module should be created for Called program and it should be concatinated to Main program object module at linkedit time to get one load module for both calling and called program. The compilor option is NODYNAM.

CALL identifier Using............. becomes dynamic call. identifier is a variable which contains Name of Called program. Calling and Called program should have separate load module.

Regards
Rajasekhar
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DSNACCOX (can it be run on 1 db/ts, t... SRICOBSAS DB2 5 Sat May 06, 2017 12:59 am
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm
No new posts Application not run by time HH:MM tri... jzhardy IBM Tools 1 Sun Apr 09, 2017 3:22 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm


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