IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

compiling & linking a statically called plain COBOL prog


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ms0033436

New User


Joined: 20 Nov 2008
Posts: 15
Location: Pune

PostPosted: Fri Jul 30, 2010 7:24 pm
Reply with quote

Hello,

I have coded 2 cobol programs - PGM A & PGM B.
I am trying to call B in program A.
I have compiled program B using NODYNAM option - I got B.OBJ
Now i tried to compile program A without using any PARM parameter. ..
I think probably bydefault it will take NODYNAM option. - A.OBJ got created.
Then i tried to link both A.OBJ & B.OBJ using IEWL. But it gave MAXXC =12. I could not trace what might be the problem behind this. Also there are not error messages/dump produced for this job. Please correct me whether the process which i am following is correct or not?


Adding to the above:
i tried to compile and link sub program & main program separately but using NODYNAM for Subprogram .But this is also not working.

Can anyone help me this?

Note: Both A & B are plain COBOL programs
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Fri Jul 30, 2010 7:36 pm
Reply with quote

IEWL error message are output in the SYSPRINT DD statement along with other details about what happened.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Jul 31, 2010 3:03 am
Reply with quote

Hello,

Are you using the standard compile and link jcl for your system or did you make some up on your own? If you are not using the standard compile/link jcl, do so and then post any problems here.
Back to top
View user's profile Send private message
ms0033436

New User


Joined: 20 Nov 2008
Posts: 15
Location: Pune

PostPosted: Mon Aug 02, 2010 4:17 pm
Reply with quote

I have made my own compile & link JCL. Till now we were using changeman.
Back to top
View user's profile Send private message
ms0033436

New User


Joined: 20 Nov 2008
Posts: 15
Location: Pune

PostPosted: Mon Aug 02, 2010 4:29 pm
Reply with quote

Even though i used SYSPRINT
& sysout .......there are no messages displayed in spool. The below is the jcl which i have used:-

//STEP1 EXEC PGM=IEWL
//SYSLIB DD DSN=SYS1.SCEELKED,DISP=SHR
//SYSLMOD DD DSN=xxxxxx.NONPROJ.LOD1,
// DISP=SHR
//SYSUT1 DD UNIT=SYSALLDA,DCB=BLKSIZE=1024,
// SPACE=(CYL,(1,1))
//SYSTERM DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSLIN1 DD DSN=xxxxxx.NONPROJ.OBJ1,DISP=SHR
//SYSLIN2 DD DSN=xxxxxx.NONPROJ.OBJ2,DISP=SHR
//SYSIN DD DUMMY
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Mon Aug 02, 2010 4:41 pm
Reply with quote

SYSLIN1 and SYSLIN2 are not standard DD names for IEWL. So unless you give instructions on how to handle them in SYSIN, IEWL is going to completely and totally ignore them -- so you have no input to the linkage editor, which implies no output as well.

The usual and normal way is
Code:
//SYSLIN DD <object module>
//       DD DDNAME=SYSIN
but since you're coding your own process, you probably don't need to know that.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Aug 02, 2010 8:40 pm
Reply with quote

Hello,

Quote:
I have made my own compile & link JCL. Till now we were using changeman.
If Changeman is no longer being used, there is new standard compile jcl which you should use - not something of your own. . .
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top