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

How do we pass Cobol Compiler option to APS Cobol


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

New User


Joined: 05 May 2005
Posts: 61

PostPosted: Thu Jan 25, 2007 2:18 pm
Reply with quote

Can anyone tell me how do we pass Cobol Compiler option (Dynam,Nodynam) to APS-Cobol.

My requirement is i want to pass cobol compiler option for compiling APS-Cobol program.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Jan 25, 2007 6:22 pm
Reply with quote

I don't know about "APS", but use a PROCESS or CBL statement to set those options.
Back to top
View user's profile Send private message
Rajen

New User


Joined: 05 May 2005
Posts: 61

PostPosted: Thu Jan 25, 2007 6:25 pm
Reply with quote

Thanks for reply William,
But CBL statemet, we use for normal batch cobol program (Cobol,cobol-2,os390 cobol) not for APS Cobol.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Jan 25, 2007 7:01 pm
Reply with quote

From looking at the APS documentation it seams that you don't have to worry about the Dynam/Nodynam option.
Back to top
View user's profile Send private message
Rajen

New User


Joined: 05 May 2005
Posts: 61

PostPosted: Thu Jan 25, 2007 7:06 pm
Reply with quote

Thanks for the link Williams,
I have gone through that.

I know i neednot worry about Dynam/Nodynam option but i need to pass TRUNC(STD)/TRUNC(BIN) (Because of some other errors which i am getting) for APS Cobol programs.

So I want to know how do we pass cobol compiler parameter in APS Cobol.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Jan 25, 2007 8:18 pm
Reply with quote

Can't you just stick them ahead of the id section?
Back to top
View user's profile Send private message
Rajen

New User


Joined: 05 May 2005
Posts: 61

PostPosted: Sat Jan 27, 2007 9:13 am
Reply with quote

Yes for normal Cobol (Cobol, Cobol-2 and OS-390) we can put this parameter before ID Section.
But with APS equivivalent code would be generated through Batch JCL(dynamically).

Actually APS' compile JCL, first converts APS-Cobol program to normal cobol and then compiles it.

So as the code is generated dynamically we have no control on ID Section.
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Mon May 28, 2007 4:02 pm
Reply with quote

Rajen wrote:


So as the code is generated dynamically we have no control on ID Section.


Hi Rajan,

Sorry to digress, can you please let me know how to convert APS cobol code into normal cobol code?
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 How I Found a Bug in a FORTRAN Compiler All Other Mainframe Topics 4
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
Search our Forums:

Back to Top