Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 252
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
This topic is locked: you cannot edit posts or make replies. 00D3003B - time outs in DB2 when invo... chavinash2004 DB2 2 Mon Oct 09, 2017 4:39 pm
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts Regarding time parameter shanthi gude JCL & VSAM 7 Mon Sep 04, 2017 2:31 pm
No new posts DSNACCOX (can it be run on 1 db/ts, t... SRICOBSAS DB2 5 Sat May 06, 2017 12:59 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us