ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Native COBOL compiles on Tandem Integrity

Post new topic  Reply to topic
 Native COBOL compiles on Tandem Integrity « View previous topic :: View next topic » 
Author Message
AndyMQ
PostPosted: Thu May 01, 2008 1:56 am    Post subject: Native COBOL compiles on Tandem Integrity Reply with quote

Apprentice

Joined: 22 Apr 2004
Posts: 33
Location: Scotland

Has anyone tried compiling native Cobol code under WMQ 5.3 on Tandem Integrity (Itanium)? Have installed 5.3.1.2 but don't appear to have any of the compile macros mentioned in the System Admin manual, and lib's are a bit dodgy too. Any help much appreciated.
Back to top
View user's profile Send private message
LouML
PostPosted: Thu May 01, 2008 4:57 am    Post subject: Re: Native COBOL compiles on Tandem Integrity Reply with quote

Partisan

Joined: 10 Nov 2005
Posts: 305
Location: Jersey City, NJ / Bethpage, NY

AndyMQ wrote:
Has anyone tried compiling native Cobol code under WMQ 5.3 on Tandem Integrity (Itanium)? Have installed 5.3.1.2 but don't appear to have any of the compile macros mentioned in the System Admin manual, and lib's are a bit dodgy too. Any help much appreciated.


Don't know if this can help, but when I was on Tandem NSK (I believe we were still at MQ 5.1 then), I used this TACL MACRO to compile COBOL MQ source:

Code:
?TACL MACRO
[#IF [#EMPTY %2%]
|THEN|
  #OUTPUT CMPMQCOB <source-file> <object-file>
|ELSE|
  #FRAME
  #PUSH cc^ mc^ rc^ log1^ log2^ log3^ fname fsrc fobj fbobj
  #SET #INFORMAT TACL
  #SET fbobj %2%
  #SET fobj  %1%
  #SET fsrc  %1%
  #CHARDEL fobj  [#CHARCOUNT fsrc]
  #CHARINS fobj  [#COMPUTE [#CHARCOUNT fobj] + 1 ] O
  DELETE DEFINE =_SOURCE_SEARCH
  DELETE DEFINE =_OBJECT_SEARCH
  #PUSH #DEFAULTS
  [#CASE [#MYSYSTEM]
  | \PA  |
    ADD DEFINE =_SOURCE_SEARCH,CLASS SEARCH,SUBVOL0 $SYSTEM.SYSTEM, &
                                            SUBVOL1 $DATA15.ZMQSLIB, &
                                            SUBVOL2 $DATA4.SRVOBJ
    ADD DEFINE =_OBJECT_SEARCH,CLASS SEARCH,SUBVOL0 $SYSTEM.SYSTEM, &
                                            SUBVOL1 $DATA15.ZMQSLIB, &
                                            SUBVOL2 $DATA4.SRVOBJ
    VOLUME $DATA16
  | \TEL |
    ADD DEFINE =_SOURCE_SEARCH,CLASS SEARCH,SUBVOL0 $SYSTEM.SYSTEM, &
                                            SUBVOL1 $DEV12.ZMQSLIB, &
                                            SUBVOL2 $DEV04.SRVOBJ
    ADD DEFINE =_OBJECT_SEARCH,CLASS SEARCH,SUBVOL0 $SYSTEM.SYSTEM, &
                                            SUBVOL1 $DEV12.ZMQSLIB, &
                                            SUBVOL2 $DEV04.SRVOBJ
    VOLUME $DEV03
  ]
  #OUTPUT COBOL85/IN [fsrc],MEM64/[fobj],CMQCOBOL;SYMBOLS;PORT; &
          INSPECT;SUPPRESS;SAVEABEND;SAVE ALL;ENV COMMON;SEARCH COBOLLIB; &
          SEARCH MQMLIB; SEARCH CLULIB; SEARCH EMSMSG
  #SET rc^ [#NEWPROCESS $SYSTEM.SYSTEM.COBOL85/IN [fsrc],MEM 64/[fobj],CMQCOBOL;SYMBOLS;PORT; &
          INSPECT;SUPPRESS;SAVEABEND;SAVE ALL;ENV COMMON;SEARCH COBOLLIB; &
          SEARCH MQMLIB; SEARCH CLULIB; SEARCH EMSMSG ]
  #SETMANY cc^ mc^, [:_completion:COMPLETIONCODE] [:_completion:messagecode]
  #POP #DEFAULTS
  [#IF ([mc^] = -5) AND ([cc^] = 0)
  |THEN|
    #SET #INLINEPREFIX +
    #SET #INLINEECHO 0
    BIND/INLINE/
    + SET HIGHPIN ON
    + SET HIGHREQUESTERS ON
    + SET RUNNAMED ON
    + SELECT CHECK PARAMETER STRONG
    + SELECT LIST * OFF
    + ADD * FROM [fobj]
    [#CASE [#MYSYSTEM]
    | \PA  |
      + SELECT SEARCH $DATA15.ZMQSLIB.MQMLIB
    | \TEL |
      + SELECT SEARCH $DEV12.ZMQSLIB.MQMLIB
    ]
    + SELECT SEARCH $SYSTEM.SYSTEM.CWIDE
    + SET SYMBOLS ON
    + SET INSPECT ON
    + SET SAVEABEND ON
    + SET HEAP 1000 PAGES
    + BUILD [fbobj] !
    + EXIT
    #OUTPUT AXCEL [fbobj],[fbobj]
    AXCEL [fbobj],[fbobj]
    PURGE [fobj]
  ]
  #UNFRAME
]

_________________
Yeah, well, you know, that's just, like, your opinion, man. - The Dude
Back to top
View user's profile Send private message
AndyMQ
PostPosted: Thu May 01, 2008 5:22 am    Post subject: Reply with quote

Apprentice

Joined: 22 Apr 2004
Posts: 33
Location: Scotland

Thanks. That's similar to the one we used for non-native Cobol under 5.1. Problem is it's all change under 5.3. We've finally got a non-native compile up and running tho' there were a few changes we had to make, including the supplied CMQCOBOL file which was slightly corrupt.
Still no further forward with the Native Cobol compiles tho'. The manual is not helpful with this as it refers to 2 sets of macros which are not actually supplied with 5.3, so we're not sure if we're pointing at correct libs or srls.
Thanks anyway
Back to top
View user's profile Send private message
SJ
PostPosted: Thu May 08, 2008 10:22 am    Post subject: Reply with quote

Newbie

Joined: 02 May 2003
Posts: 8
Location: US

I found bcobsamp in the 5.3 sample directory that compiles PIC, NONPIC, NONPICS or TNS type cobol sources.
Back to top
View user's profile Send private message
SJ
PostPosted: Thu May 08, 2008 10:30 am    Post subject: Reply with quote

Newbie

Joined: 02 May 2003
Posts: 8
Location: US

Sorry, we're not running Itanium.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Native COBOL compiles on Tandem Integrity
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.