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
 

 

compiling & linking a statically called plain COBOL prog

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: compiling & linking a statically called plain COBOL prog
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: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Fri Jul 30, 2010 7:36 pm    Post subject:
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

Site Director


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

PostPosted: Sat Jul 31, 2010 3:03 am    Post subject:
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    Post subject: Reply to: compiling & linking a statically called plain
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    Post subject: Reply to: compiling & linking a statically called plain
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: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Mon Aug 02, 2010 4:41 pm    Post subject:
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

Site Director


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

PostPosted: Mon Aug 02, 2010 8:40 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Could we identify the called modules ... elixir1986 COBOL Programming 5 Fri Jul 14, 2017 1:53 am
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts IDMS DC027007 T58 TASK:ADS2 PROG:ADSO... gpowell382 IDMS/ADSO 2 Fri Jun 30, 2017 11:52 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm


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