- Newest
- Most votes
- Most comments
Hi S M Rao,
Please go through the below steps i hope it will helps to resolve your issue.
Steps to Resolve
Initialize the Pointer: Ensure that BLL-PTR-TWA is properly initialized before it is used. In COBOL, this typically means ensuring it points to a valid memory location.
Allocate Memory for TWA: In the AWS Bluage environment, ensure that memory for the TWA is properly allocated before accessing it. This might involve using specific APIs or methods provided by AWS Bluage for memory management.
Correct Transformation Code: Verify that the transformation code generated by AWS Bluage is correctly handling the memory addressing. You might need to manually adjust the transformation code if the automated process does not handle this scenario correctly.
Equivalent Transformation Code In AWS Bluage, you need to ensure that memory management and pointer initialization are correctly handled. Here is an example of how you might manually adjust the transformation code:
* Example in COBOL
01 TWA-AREA.
05 TWA-DATA PIC X(100).
01 BLL-PTR-TWA USAGE POINTER.
* Initialize pointer to TWA area
SET ADDRESS OF TWA-AREA TO BLL-PTR-TWA
* CICS command to address TWA
EXEC CICS ADDRESS
TWA(BLL-PTR-TWA)
END-EXEC
* Now BLL-PTR-TWA points to the TWA area
In the transformed code, ensure that:
- TWA-AREA is properly allocated.
- BLL-PTR-TWA is correctly initialized.
Example in a Transformed Environment (Pseudo-Code) This is a conceptual example and might need adjustments based on the specific APIs and syntax used in AWS Bluage:
// Example in AWS Bluage pseudo-code
// Allocate memory for TWA
TWA_AREA = allocateMemory(100); // Allocate 100 bytes for TWA
// Initialize pointer
BLL_PTR_TWA = getAddressOf(TWA_AREA);
// Equivalent to EXEC CICS ADDRESS TWA(BLL-PTR-TWA)
cicsAddressTwa(BLL_PTR_TWA);
// Now BLL_PTR_TWA points to TWA_AREA
Recommendations
-
Consult Documentation: Refer to AWS Bluage documentation for specific details on memory management and addressing.
-
Manual Adjustments: Be prepared to make manual adjustments to the transformed code to ensure it handles memory correctly.
-
Support: If issues persist, consider reaching out to AWS support or AWS Bluage support for more detailed guidance.
Relevant content
- Accepted Answerasked 24 days ago
- asked 6 months ago
- Accepted Answerasked 3 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated a year ago
Thanks for the reply. Allocated memory like this.. jics.parameters.cwa.length: 40 jics.parameters.twa.length: 100
Hello While accessing linkage section variables (TWA-AREA), getting error - Cannot access to memory with a null pointer. What could be the reason..?