| Recent Answers |
 |
 |
2008-07-04 Cobol - Accessing Loaded Table in MEMORY: Short answer is NO. Memory for LINKAGE does not exist until it is allocated. Base COBOL does not support ALLOCATE memory function. Some implementation do via a system subroutine. Use ALLOCATE with...
|
2008-07-02 Cobol - Date Caculation in COBOL: Several ways. 1. Write your own calendar function with the days of the year. Allow for leap year. 2. Use the FUNCTION DATE-of-INTEGER and INTEGER-OF-DATE to convert dates and manipulate dates. You...
|
2008-07-02 Cobol - line feed and carriage returns: You need to define the file large enough to hold all the data you need to write. If you need to have the x'0a' as 236 you need to define the file that length and MOVE X'0A' to the 236th position....
|
2008-07-02 Cobol - line feed and carriage returns: COBOL is defined as automaticly being implementation compatible. This creates the problem you describe. You can change the file to not be a printer file and manually added the x'0A' at location 235. Remember...
|
2008-06-16 Cobol - COBOL: This is a very common request. There are several FUNCTIONs that can give you the answer. First you convert the date you want to have the day of the week of to CCYYMMDD format, then use the INTEGER-OF-DATE...
|