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
 

 

LOAD command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
Biswajit Nanda

New User


Joined: 28 Mar 2011
Posts: 9
Location: India

PostPosted: Tue May 17, 2011 12:12 pm    Post subject: LOAD command
Reply with quote

Do we need TRANSID in LINK and XCTL? and is it necessary to have TRANSID in LOAD command?
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Tue May 17, 2011 12:34 pm    Post subject: Reply to: LOAD command
Reply with quote

what does the manual say ?

start from here
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/DFHASJ00

and proceed to here
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DFHP4C00/CCONTENTS?SHELF=DFHASJ00&DN=SC34-6819-00&DT=20070612172134

where You will find the answer to Your questions
here
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DFHP4C00/1.153?SHELF=DFHASJ00&DT=20070612172134
and here
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DFHP4C00/1.304?SHELF=DFHASJ00&DT=20070612172134
and here
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DFHP4C00/1.156?SHELF=DFHASJ00&DT=20070612172134

but naturally You are too lazy to look at the manuals Yourself ... uhu ?
Back to top
View user's profile Send private message
Biswajit Nanda

New User


Joined: 28 Mar 2011
Posts: 9
Location: India

PostPosted: Tue May 17, 2011 12:40 pm    Post subject:
Reply with quote

no i will look into it for sure icon_smile.gif, am a begineer so having such problems, please cope up icon_smile.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Tue May 17, 2011 12:50 pm    Post subject: Reply to: LOAD command
Reply with quote

being a beginner is not an excuse for not reading the manuals
and throwing senseless questions around,
what made You think that a TRANSID is needed for a LINK/XCTL/LOAD, just a wild guessing

but sincerely You might be better off here
http://ibmmainframeforum.com/index.php
where beginners questions are better hosted

Quote:
please cope up

the first one to cope up with proper training is Your employer
unless Your organization is so cheap to try to get free training from us icon_evil.gif

replying on a forum is
on voluntary basis
on our own time
free of charge
interest of the question asked

if the question is <silly> Your chances of getting a good answer, like I did in this case, are slim
not everybody cares to spend time on minutiae ( small/irrelevant matters )

for the manuals there is a link at the top of the page
or the mother of all knowledge here
http://www-03.ibm.com/systems/z/os/zos/bkserv/index.html
Back to top
View user's profile Send private message
Biswajit Nanda

New User


Joined: 28 Mar 2011
Posts: 9
Location: India

PostPosted: Tue May 17, 2011 1:44 pm    Post subject:
Reply with quote

hey, its not about training...

the main doubt is,
the format to represent a LINK or XCTL command is

EXEC CICS LINK/XCTL
PROGRAM (NAME)
[COMMAREA(DATA-NAME)]
[LENGTH(DATA-VALUE)
END EXEC

Where in RETURN command we use TRANSID(NAME) instead of PROGRAME(NAME)...


my question is can we use TRANSID(NAME) instead of PROGRAM(NAME) in LINK/XCTL?

If yes why?
and if no why?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Tue May 17, 2011 1:48 pm    Post subject: Reply to: LOAD command
Reply with quote

first ...
learn the good manners, hey is a way of addressing dogs, not people icon_evil.gif

second
the manuals links I posted explain things vey clearly any reason not to read and try to understand them ?

if the manual tell about PROGRAM (NAME) and not about TRANSID(NAME)

one reason why You cannot do it is... guess what... because the manual tells so
Back to top
View user's profile Send private message
Biswajit Nanda

New User


Joined: 28 Mar 2011
Posts: 9
Location: India

PostPosted: Tue May 17, 2011 1:50 pm    Post subject:
Reply with quote

enrico you are taking the conversation in a wrong way,i never intended to misbehave you... I went through the material,and i replied then, i didn't get my answer there, so i asked you back....
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Tue May 17, 2011 1:55 pm    Post subject: Reply to: LOAD command
Reply with quote

what kind of reply would You expect from the manuals ...
if an option is not there no whining will make it appear icon_cool.gif

Quote:

if the manual tells about PROGRAM (NAME) and not about TRANSID(NAME)

one reason why You cannot do it is... guess what... because the manual tells so(*)


(*)the manual reflect the design of the software...
at the end asking why a product behaves the way it does is just useless speculation
the people who designed decided in that way
Back to top
View user's profile Send private message
Stefan

Active User


Joined: 12 Jan 2006
Posts: 110
Location: Germany

PostPosted: Tue May 17, 2011 1:59 pm    Post subject:
Reply with quote

Biswajit Nanda wrote:
Where in RETURN command we use TRANSID(NAME) instead of PROGRAME(NAME)...
... can we use TRANSID(NAME) instead of PROGRAM(NAME) in LINK/XCTL

EXEC CICS RETURN means that your program and the associated transaction ends and control is given back to CICS. When you want to get another program started (delayed) at the same terminal, you have to specify the TRANSID because a program must always run within a transaction. This is an important detail of CICS meta model. It is absolutely worth to investigate more into these concepts.

So why is it possible to LINK/XCTL/LOAD another program without specifying a TRANSID? Because your program already runs within a transaction. LINK, XCTL, or LOAD all cause an immediate execution of the specified program without transaction switching. That's also a general rule in CICS which you should understand.

And that's why you may specify a TRANSID on EXEC CICS RETURN but must not specify any program name, and you have to specify PROGRAM on EXEC CICS LINK/XCTL/LOAD but must not specify TRANSID.

Hope this helps
Back to top
View user's profile Send private message
Biswajit Nanda

New User


Joined: 28 Mar 2011
Posts: 9
Location: India

PostPosted: Tue May 17, 2011 2:04 pm    Post subject:
Reply with quote

Thank you Stefan. This really clears all the doubt icon_smile.gif
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 990
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Tue May 17, 2011 5:24 pm    Post subject:
Reply with quote

Quote:
LINK, XCTL, or LOAD all cause an immediate execution of the specified program....


LOAD does not cause any program execution, it simply loads the program (and returns the load address).

Garry.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Tue May 17, 2011 5:40 pm    Post subject:
Reply with quote

Garry Carroll wrote:
Quote:
LINK, XCTL, or LOAD all cause an immediate execution of the specified program....


LOAD does not cause any program execution, it simply loads the program (and returns the load address).

Garry.


The EXEC CICS LOAD loads a named map set or data table in shared storage. It has nothing to do with transferring control and passing parameters.
Back to top
View user's profile Send private message
valyk

Active User


Joined: 16 Apr 2008
Posts: 104
Location: South Carolina

PostPosted: Tue May 17, 2011 7:55 pm    Post subject:
Reply with quote

Load can specify the beginning address of the module:

Code:
LOAD

>>-LOAD--PROGRAM(name)--+--------------+------------------------>
                        '-SET(ptr-ref)-'   

>--+--------------------+--+----------------+--+------+--------><
   +-LENGTH(data-area)--+  '-ENTRY(ptr-ref)-'  '-HOLD-'   
   '-FLENGTH(data-area)-' 


And it is not just maps or data tables. From the manual:

Quote:
Load makes available to the invoking task a copy of an application program, table, or map. If the program is defined with RELOAD=NO, it is only fetched from the library where it resides, if there is not a copy already in main storage. If the program is defined with RELOAD=YES, a new copy is always fetched from the library. (See the CICS Application Programming Guide for further details about maps.) Using LOAD can reduce system overhead.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Tue May 17, 2011 9:36 pm    Post subject: Reply to: LOAD command
Reply with quote

I've used LOAD to load an external Assembler CSECT into memory and obtain the LP address or obtain the LP address of a CSECT, if it's specified as Resident in the PPT entry (a/k/a Core Resident and already loaded).

When the LOADED module is not Core-Resident, CICS pages it out of memory at task termination.

If the non Core-Resident module is huge (huge is your own definition) and you're done with it and you're not at task termination, issue a RELEASE PROGRAM, which pages it out of memory.

If you have multiple tasks running concurrently which have loaded this huge module into memory, then a RELEASE PROGRAM would be the wise thing to do when the task (program) is done with it....

Bill
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm
No new posts Copybook structure in Load module Vai123 COBOL Programming 7 Fri Sep 16, 2016 8:29 pm


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