Only compile one program

I have Visual COBOL Personal Edition with Visual Studio 2012, running on Windows/8

I have set up a Project with several programs in it

When I Build the Project it tries to compile each source member within the Project

And it comes up against the 2200 Procedure Division line limit fairly easily

If I have, say, 10 programs in a Project and I change one program, how can I just compile/prepare that one program

Is it possible?

Parents
  • Thanks for your response

    I had a set pf programs and did the Build

    It stopped at a program that has 2103 'live' PROCEDURE DIV lines (incl comment lines) and 302 blank lines totalling 2405 lines in that part of the program

    Total lines in the program is 2924 of which 384 are blank from (001:064)

    So I re-made the project and did not include the programs that led up to the program that was nominated as having exceeded the limit of 2200

    When I did the build after that, the originally offending program compiled fine and the Build stopped further along the line at a different program which is not large at all

    I think I might not have set up my Project correctly

    I start VS 2012

    New Project

    Close off Program1

    Copy and Paste valid COBOL source members from my working code folder into the project folder – using Windows CTRL C then Ctrl V

    Then select PROJECT/Add Existing Item and do them all in onelong list and that all works well

    It is here that if I Build that I get the error COBCH0804: Source limit of 2200 procedure lines exceeded

    Also, I can go to Solution Explorer and see my Project details but there is not a Compile option when I right-click a program name from the list of all the ones I put there with Add Existing Item

    The choices I had were:

    Open

    Open With

    Scope to This

    New Solution Explorer View

    Exclude from Project

    Create Project

    Cut

    Copy

    Delete

    Rename

    Properties

    If I select Properties, I can see under Advanced the Build Action is Compile

    But I cannot see where to ‘manually’ tell it to Compile that program

    Is my Project set up correctly?

Reply
  • Thanks for your response

    I had a set pf programs and did the Build

    It stopped at a program that has 2103 'live' PROCEDURE DIV lines (incl comment lines) and 302 blank lines totalling 2405 lines in that part of the program

    Total lines in the program is 2924 of which 384 are blank from (001:064)

    So I re-made the project and did not include the programs that led up to the program that was nominated as having exceeded the limit of 2200

    When I did the build after that, the originally offending program compiled fine and the Build stopped further along the line at a different program which is not large at all

    I think I might not have set up my Project correctly

    I start VS 2012

    New Project

    Close off Program1

    Copy and Paste valid COBOL source members from my working code folder into the project folder – using Windows CTRL C then Ctrl V

    Then select PROJECT/Add Existing Item and do them all in onelong list and that all works well

    It is here that if I Build that I get the error COBCH0804: Source limit of 2200 procedure lines exceeded

    Also, I can go to Solution Explorer and see my Project details but there is not a Compile option when I right-click a program name from the list of all the ones I put there with Add Existing Item

    The choices I had were:

    Open

    Open With

    Scope to This

    New Solution Explorer View

    Exclude from Project

    Create Project

    Cut

    Copy

    Delete

    Rename

    Properties

    If I select Properties, I can see under Advanced the Build Action is Compile

    But I cannot see where to ‘manually’ tell it to Compile that program

    Is my Project set up correctly?

Children
No Data