Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
How to link mainprogram and subprogram in MVT Cobol
Hi
?
Can somebody please explain, whats the purpose of the DD DDNAME=SYSIN statement here? What does it reference to? SYSIN was used as source input dataset for the COBOL compiler and SYSLIN is the object module. I don't understand that. Thank you very much.
?
?
COBUCL procedure:
?
//COBUCL ?PROC CPARM1='LOAD,SUPMAP', ? ? ? ? ? ? ? ? ? ? ? ?
// ? ? ? ? ? ? CPARM2='SIZE=2048K,BUF=1024K', ? ? ? ? ? ? ?? // ? ? ? ? ? ? LKEDPGM='IEWL' ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? //COB ?EXEC ?PGM=IKFCBL00,REGION=4096K, ? ? ? ? ? ? ? ? ? ?? // ? ? ? ? ? PARM='&CPARM1,&CPARM2' ? ? ? ? ? ? ? ? ? ? ? ?? //SYSPRINT ?DD SYSOUT=* ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? //SYSUT1 DD UNIT=SYSDA,SPACE=(460,(700,100)) ? ? ? ? ? ? ? ? //SYSUT2 DD UNIT=SYSDA,SPACE=(460,(700,100)) ? ? ? ? ? ? ? ? //SYSUT3 DD UNIT=SYSDA,SPACE=(460,(700,100)) ? ? ? ? ? ? ? ? //SYSUT4 DD UNIT=SYSDA,SPACE=(460,(700,100)) ? ? ? ? ? ? ? ? //SYSLIN DD DSN=&LOADSET,DISP=(MOD,PASS),UNIT=SYSDA, ? ? ? ? // ? ? ? ? ? ? SPACE=(80,(500,100)) ? ? ? ? ? ? ? ? ? ? ? ?? //LKED EXEC PGM=&LKEDPGM, ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? // ? ? ? ? ?PARM='LIST,XREF,LET',COND=(5,LT,COB),REGION=96K? //SYSLIN ?DD DSN=&LOADSET,DISP=(OLD,DELETE) ? ? ? ? ? ? ? ?? // ?DD ?DDNAME=SYSIN ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? //SYSLMOD DD DDNAME=SYSLMOD ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? //SYSLIB DD ? DSN=SYS1.COBLIB,DISP=SHR ? ? ? ? ? ? ? ? ? ? ? //SYSUT1 DD UNIT=SYSDA,SPACE=(1024,(50,20)) ? ? ? ? ? ? ? ?? //SYSPRINT DD SYSOUT=* ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
|
On Tue, Feb 25, 2025 at 03:19 PM, <ssulser@...> wrote:
Can somebody please explain, whats the purpose of the DD DDNAME=SYSIN statement here? What does it reference to? It is a concatenation statement for SYSLIN, typically to provide linker statements which, for example, would allow you to link/edit your main object module (the one defined by SYSLIN) with some other object module(s) from an other library, or to name the final object module produced by the linker.
?
If you don't need it, you can ignore it. This will generate a warning but the link/edit will proceed normally.
?
Cheers,
?
Rene FERLAND, Montreal |
//LKED.SYSIN DD * ?Statements to include additional programs into load module. /* Include copies the member (subroutine) into the object module Library sets up the member (subroutine) to be separately?loaded during runtime. On Tue, Feb 25, 2025 at 5:19?PM ssulser via <ssulser=[email protected]> wrote:
--
Mike A Schwab, Springfield IL USA Where do Forest Rangers go to get away from it all? |
On 2/23/25 12:29, ssulser via groups.io wrote:
HiIt allows you to append control statements to the SYSLIN dataset. You might include statements to supply additional directives to the Link Editor, such as NAME, ORDER, etc. |
Thank you. Ok. I see in which direction it goes. In GC28-6399 COBOL_Compiler_and_Library Manual, SYSIN is not mentioned. But I found it in GC26-4061-1_MVS_370_Linkage_Editor_Users_Guide_Dec85. With this concatenation I could ad statements to the load editor:
?
?
And if I may say so. I am absolutely thrilled when I see who has replied to me. I've been a fanatical MVS/Hercules fan for 3 years and you guys are my heroes!!! And then of course there's Moshix!
?
Thank you,
Simon
? |
to navigate to use esc to dismiss