Created On:  08 February 2011

Problem:

This process needs to be done in the case where a user has a 32 bit COBOL program, on which a service interface was based, and it was decided that the program would be recompiled as a 64-bit program instead. The program was originally 32-bit and now it has been moved to 64-bit.

Resolution:

The following procedure describes what needs to be done to get the service interface metadata to recognize that the end user COBOL program is now a 64-bit program.  To change all programs in a solution or project:

1. Open the Visual Studio solution that contains one or more service interfaces based on 32-bit COBOL programs.
2. From the Solution Explorer, right-click the solution name; then click Configuration Manager from the context menu.
3. Do one of the following: To change the COBOL programs in all projects in the solution from 32-bit to 64-bit,
   change the value in the Active Solution Platform field by selecting x64 from the drop-down list.
4. To change the COBOL programs contained in one project in the solution from 32-bit to 64-bit, change the value in
   the Platform column corresponding to the project by selecting x64 from the drop-down list.

   Tip: If 64-bit is not available on the Active Solution Platform or the Platform drop-down list, do the following
   to add it:
   1. From the drop-down list, click .
   2. Using the drop-down list, change the value in the Copy settings from field to x64.
   3. Check Create new solution platforms.
   4. Click OK.

5. Click Close.
6. On the Solution Explorer, right-click the project name; then select Refresh Annotations for Services.
7. Select the programs you want to migrate to 64-bit; then click Refresh.
8. Click Close.

To change individual COBOL programs:

1. Create a new project and solution using the Mainframe Subsystem application template.
2. Set the Active Solution Platform to 64-bit.
3. Import just the COBOL programs you want to change, the service interfaces based on them,
   and their corresponding support files into the project.
4.   Refresh the annotations for services.