You can subscribe to this list here.
| 1999 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(341) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2000 |
Jan
(42) |
Feb
(22) |
Mar
(59) |
Apr
(12) |
May
(15) |
Jun
(30) |
Jul
(25) |
Aug
(13) |
Sep
(98) |
Oct
(51) |
Nov
(95) |
Dec
(99) |
| 2001 |
Jan
(105) |
Feb
(175) |
Mar
(411) |
Apr
(310) |
May
(294) |
Jun
(213) |
Jul
(132) |
Aug
(82) |
Sep
(26) |
Oct
(121) |
Nov
(181) |
Dec
(96) |
| 2002 |
Jan
(52) |
Feb
(128) |
Mar
(141) |
Apr
(111) |
May
(149) |
Jun
(164) |
Jul
(33) |
Aug
(77) |
Sep
(62) |
Oct
(92) |
Nov
(14) |
Dec
(33) |
| 2003 |
Jan
(33) |
Feb
(58) |
Mar
(120) |
Apr
(180) |
May
(206) |
Jun
(110) |
Jul
(232) |
Aug
(207) |
Sep
(103) |
Oct
(122) |
Nov
(42) |
Dec
(68) |
| 2004 |
Jan
(83) |
Feb
(107) |
Mar
(90) |
Apr
(7) |
May
(42) |
Jun
(36) |
Jul
(11) |
Aug
(24) |
Sep
(67) |
Oct
(116) |
Nov
(96) |
Dec
(22) |
| 2005 |
Jan
(29) |
Feb
(6) |
Mar
(12) |
Apr
(31) |
May
(47) |
Jun
(12) |
Jul
(76) |
Aug
(69) |
Sep
(7) |
Oct
(21) |
Nov
(5) |
Dec
(4) |
| 2006 |
Jan
(5) |
Feb
(7) |
Mar
(7) |
Apr
(3) |
May
(4) |
Jun
(4) |
Jul
(8) |
Aug
(13) |
Sep
(7) |
Oct
(2) |
Nov
(6) |
Dec
(30) |
| 2007 |
Jan
(43) |
Feb
(7) |
Mar
(2) |
Apr
(4) |
May
(11) |
Jun
(1) |
Jul
|
Aug
|
Sep
(22) |
Oct
(18) |
Nov
(6) |
Dec
(31) |
| 2008 |
Jan
(1) |
Feb
(2) |
Mar
(3) |
Apr
|
May
|
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(2) |
Oct
(11) |
Nov
(8) |
Dec
|
| 2009 |
Jan
(6) |
Feb
(4) |
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
(3) |
Sep
|
Oct
(3) |
Nov
|
Dec
(8) |
| 2010 |
Jan
(15) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
(4) |
Nov
|
Dec
|
| 2011 |
Jan
|
Feb
|
Mar
|
Apr
(12) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2012 |
Jan
(7) |
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Carlos G. <cg...@ya...> - 2005-07-10 22:04:26
|
David
String verb that has strage output has no DELIMITED in first token (by default DELIMITED BY SIZE). DELIMITED BY SPACES is used only in WTEXT1 token (with a value of "12345 ") . It seems that using DELIMITED BY SPACES only in one token does the compiler to use this option in every token of the command.
STRING "INSERT INTO TEST " , <<<--- No DELIMITED (Default BY SIZE)
",",
W9,
",",
WTEXT1 DELIMITED BY SPACES,
");" INTO WRESULT.
Result:
INSERT,999,12345);
Using DELIMITED BY SIZE in first token gives the correct result.
STRING "INSERT INTO TEST " DELIMITED BY SIZE,
",",
W9,
",",
WTEXT1 DELIMITED BY SPACES,
");" INTO WRESULT.
Result:
INSERT INTO TEST ,999,12345);
It looks like default DELIMITED BY SIZE doesn´t be use by TC in this case.
David Essex <de...@us...> escreveu:
Carlos Gomes wrote:
> In the test program above, the second display (results of String verb
> using DELIMITED BY SPACES) generate a strange output. DEMILITED BY
> SPACES in the fourth string causes a truncation in the first string
> (by default DEMILITED BY SIZE).
> DISPLAY 3, including DELIMITED BY SIZE explicity in the first string,
> generates the expected output.
If I understand you correctly, the second display is generating this output,
2-INSERT,999,12345);
and should be generating this output,
2-INSERT INTO TEST ,999,12345);
correct ?
I've looked at the COBOL 1989 (draft) standard, and I think TC is
generating the correct output '2-INSERT,999,12345);', for the following
reasons.
The figurative constant SPACES (literal) is equivalent to " " (single
space).
Thus the phrase 'DELIMITED BY SPACES' is equivalent to
'DELIMITED BY " "'.
And the literal 'INSERT INTO TEST ' gets truncated to 'INSERT'.
BTW, what are other commercial compilers generating ?
Syntax:
STRING {
{identifier-1 | literal-1}...
DELIMITED [BY]
{identifier-2 | literal-2 | SIZE }
}...
INTO identifier-3
COBOL standard:
14.10.39 STRING statement
...
14.10.39.3 General rules
...
3) When a figurative constant is specified as literal-1 or literal-2, it
refers to an implicit one character data item whose usage shall be the
same as the usage of identifier-3, either display or national.
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Tin...@li...
https://lists.sourceforge.net/lists/listinfo/tiny-cobol-users
---------------------------------
Yahoo! Acesso Grátis: Internet rápida e grátis. Instale o discador agora! |
|
From: Fred M. <fr...@mo...> - 2005-07-09 20:39:00
|
David Essex wrote: > > Carlos Gomes wrote: > > > In the test program above, the second display (results of String verb > > using DELIMITED BY SPACES) generate a strange output. DEMILITED BY > > SPACES in the fourth string causes a truncation in the first string > > (by default DEMILITED BY SIZE). > > DISPLAY 3, including DELIMITED BY SIZE explicity in the first string, > > generates the expected output. > > If I understand you correctly, the second display is generating this output, > > 2-INSERT,999,12345); > > and should be generating this output, > > 2-INSERT INTO TEST ,999,12345); > > correct ? > > I've looked at the COBOL 1989 (draft) standard, and I think TC is > generating the correct output '2-INSERT,999,12345);', for the following > reasons. > > The figurative constant SPACES (literal) is equivalent to " " (single > space). > Thus the phrase 'DELIMITED BY SPACES' is equivalent to > 'DELIMITED BY " "'. > And the literal 'INSERT INTO TEST ' gets truncated to 'INSERT'. David, you are correct. I cannot read the original message from Carlos Gomes because of the message format but I often used DELIMITED BY SIZE or DELIMITED BY " " (two space characters between quotes). The latter works just fine in COBOL in case intermediate spaces are present in a sending field. -- Fred Mobach - fr...@mo... - pos...@mo... Systemhouse Mobach bv - The Netherlands - since 1976 website : http://fred.mobach.nl Q: servos ad pileum vocare ? A: servos fenestrae ad pileum rubrem vocare ! |
|
From: David E. <de...@us...> - 2005-07-09 18:31:53
|
Carlos Gomes wrote:
> In the test program above, the second display (results of String verb
> using DELIMITED BY SPACES) generate a strange output. DEMILITED BY
> SPACES in the fourth string causes a truncation in the first string
> (by default DEMILITED BY SIZE).
> DISPLAY 3, including DELIMITED BY SIZE explicity in the first string,
> generates the expected output.
If I understand you correctly, the second display is generating this output,
2-INSERT,999,12345);
and should be generating this output,
2-INSERT INTO TEST ,999,12345);
correct ?
I've looked at the COBOL 1989 (draft) standard, and I think TC is
generating the correct output '2-INSERT,999,12345);', for the following
reasons.
The figurative constant SPACES (literal) is equivalent to " " (single
space).
Thus the phrase 'DELIMITED BY SPACES' is equivalent to
'DELIMITED BY " "'.
And the literal 'INSERT INTO TEST ' gets truncated to 'INSERT'.
BTW, what are other commercial compilers generating ?
Syntax:
STRING {
{identifier-1 | literal-1}...
DELIMITED [BY]
{identifier-2 | literal-2 | SIZE }
}...
INTO identifier-3
COBOL standard:
14.10.39 STRING statement
...
14.10.39.3 General rules
...
3) When a figurative constant is specified as literal-1 or literal-2, it
refers to an implicit one character data item whose usage shall be the
same as the usage of identifier-3, either display or national.
|
|
From: David E. <de...@us...> - 2005-07-09 18:31:20
|
Carlos Gomes wrote: > How do I know MF features associated with option > --enable-mfcomp when I generate htcobol with this option??? There are only two options which must be explicitly enabled when TC is configured. COMMAND-LINE: The statement 'ACCEPT identifier-1 FROM COMMAND-LINE' will retrieve the command-line arguments and place them in identifier-1, delimited by spaces. The TC default is to use the UN*X like feature and include the first argument, the actual external name (binary) of the calling program. With the 'mfcomp' option, the external name (binary) is omitted. example (default): $prog1.exe a b c -> 'prog1.exe a b c' example (mfcomp): $prog1.exe a b c -> 'a b c' See 'test.code/t17' directory for an example. EXTERN-FILE: SELECT ... ASSIGN TO EXTERNAL [ literal-1 | identifier-1 ] The EXTERNAL clause of the 'SELECT' statement enables the association of internal file identifiers with external file names, and is achieved by the use of environment variables. This feature mimics the methodology found on main-frames. The TC default is to use identifier (or literal) and use it to search for the environment variable. If the environment variable is found, use the name as the actual file name. With the 'mfcomp' option, the search sequence is more complex and a 'DD_' prefix is used. It basically mimics the methodology found in MF compilers. See 'fileio.c' file for details. example (default): $export SYS002=/home/user123/filein1 ... SELECT filein1 ASSIGN TO EXTERNAL "SYS002" then ... filein1=/home/user123/filein1 See 'test.code/t19' directory for an example. Perhaps a better approach would be to add these as run-time options, which could then be defined by the user. |
|
From: Carlos G. <cg...@ya...> - 2005-07-09 10:44:19
|
How do I know MF features associated with option --enable-mfcomp when I generate htcobol with this option??? David Essex <de...@us...> escreveu: BB wrote: > How do I invoke the option to map files using the DD_ environment > variables? > > You included some kind of compiler option or something? > > (Yes I know I'm losing it) > > Jim Morcombe > (using someone else's computer) You have define this option at the configure step. $./configure --help ... --enable-mfcomp enable MF compatibility features ... Since 'DD_' is a MF option, $./configure --enable-mfcomp then build the compiler and run-time. ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Tin...@li... https://lists.sourceforge.net/lists/listinfo/tiny-cobol-users --------------------------------- Yahoo! Acesso Grátis: Internet rápida e grátis. Instale o discador agora! |
|
From: Carlos G. <cg...@ya...> - 2005-07-09 10:32:35
|
David
In the test program above, the second display (results of String verb using DELIMITED BY SPACES) generate a strange output. DEMILITED BY SPACES in the fourth string causes a truncation in the first string (by default DEMILITED BY SIZE).
DISPLAY 3, including DELIMITED BY SIZE explicity in the first string, generates the expected output.
IDENTIFICATION DIVISION.
PROGRAM-ID. SWPROG.
AUTHOR. SW.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
SPECIAL-NAMES.
DECIMAL-POINT IS COMMA.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 W1.
03 A1 PIC 9(01).
03 A2 PIC 9(02).
03 A3 PIC 9(03).
03 A4 PIC 9(04).
01 W2.
03 B1 PIC 9(01).
03 B2 PIC 9(02).
03 B3 PIC 9(03).
01 WRESULT PIC X(100) VALUE SPACES.
01 WTEXT PIC X(100) VALUE SPACES.
01 WTEXT1 PIC X(10) VALUE "12345 ".
01 W9 PIC 999 VALUE 999.
PROCEDURE DIVISION.
PARAG.
MOVE SPACES TO WRESULT.
STRING "INSERT INTO TEST ",
",",
W9,
",",
* WTEXT1 DELIMITED BY SPACES,
");" INTO WRESULT.
DISPLAY "1-" WRESULT.
MOVE SPACES TO WRESULT.
STRING "INSERT INTO TEST " ,
",",
W9,
",",
WTEXT1 DELIMITED BY SPACES,
");" INTO WRESULT.
DISPLAY "2-" WRESULT.
MOVE SPACES TO WRESULT.
STRING "INSERT INTO TEST " DELIMITED BY SIZE,
",",
W9,
",",
WTEXT1 DELIMITED BY SPACES,
");" INTO WRESULT.
DISPLAY "3-" WRESULT.
MOVE SPACES TO WRESULT.
STRING "INSERT INTO TEST ",
",",
W9,
",",
WTEXT1 ,
");" INTO WRESULT.
DISPLAY "4-" WRESULT.
STOP RUN.
Results:
1-INSERT INTO TEST ,999,);
2-INSERT,999,12345);
3-INSERT INTO TEST ,999,12345);
4-INSERT INTO TEST ,999,12345 );
David Essex <de...@us...> escreveu:
David Essex wrote:
> Yes, there are several problems here.
> First the TC grammar does not conform to the COBOL85 standard.
>
> Syntax:
> STRING {
> {identifier-1 | literal-1}...
> DELIMITED [BY]
> {identifier-2 | literal-2 | SIZE }
> }...
> INTO identifier-3
> ...
OK, I was wrong, and the two books I consulted were wrong.
I'm not sure if this was part of the original COBOL 1985 standard, or a
later modification, but according to the COBOL 1989 (draft) standard:
STRING ...
The DELIMITED phrase may be omitted only immediately preceding the INTO
phrase. If it is omitted, DELIMITED BY SIZE is implied.
> Carlos Gomes wrote:
>
>> I am getting a invalid result when use STRING verb.
>> The sample above has 3 similar STRINGs, using DELIMITED
>> BY SPACES the result is strange!!
>> ...
>> Result in:
>>
>> DISPLAY 1--> INSERT,999,'12345');
>> DISPLAY 2--> INSERT INTO TEST ,999,'12345 ');
>> DISPLAY 3--> INSERT INTO TEST ,999,'12345 ');
I don't see what the problem is.
Exactly what output did you expect ?
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Tin...@li...
https://lists.sourceforge.net/lists/listinfo/tiny-cobol-users
__________________________________________________
Converse com seus amigos em tempo real com o Yahoo! Messenger
http://br.download.yahoo.com/messenger/ |
|
From: David E. <de...@us...> - 2005-07-08 19:14:19
|
Stefan Heublein wrote: > ... >>TC uses the STDCALL (C call convention) as a default, so the STDCALL >>keyword is NOT required. > > Refering to the following TC grammar from the news group archive, > TC is using CDECL as default... :-) > >>Grammar: >>CALL [ STDCALL | WINAPI | CDECL ] name .... Sorry, my mistake. It is STDCALL and WINAPI (PASCAL ?) which are the same. So the STDCALL (WINAPI) keyword IS required when using the MinGW compiler tool chain. |
|
From: David E. <de...@us...> - 2005-07-08 19:13:39
|
Massimo Colani wrote: > Will this problem be solved in future releases or > will it stay? I'm currently trying to resolve the problems. I do have a fix which works in an xterm or rxvt, but does not work properly when using a UN*X standard console. No tests have been perfomed on Win32 using PDcurses. Also there is a bug with the color set code, resulting in the screen background color to be set to what ever the first field background color is. If you like to the test the code I have, I could update SF CVS. |
|
From: Massimo C. <mas...@ya...> - 2005-07-08 16:43:10
|
Buona sera! Will this problem be solved in future releases or will it stay? Massimo --- David Essex <de...@us...> ha scritto: > Massimo Colani wrote: > > > I think Roland is right. By configuring Tiny > Cobol 0.62, > > everything goes ok when the test for color_set > is positive. > > When this test fails, the whole make of TC is > not correct > > and the screen layout is bot working. > > > > Look here, this is a example program I am > running on a VT 510 > > genuine terminal, but it also fails on the > system console > > with TERM=linux: > > Yes, there is definitely some thing wrong. > > It appears that the entries and attributes are out > of sync. > > The problems can be found in version 0.56 and later. > > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux > Migration Strategies > from IBM. Find simple to follow Roadmaps, > straightforward articles, > informative Webcasts and more! Get everything you > need to get up to > speed, fast. > http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Tin...@li... > https://lists.sourceforge.net/lists/listinfo/tiny-cobol-users > ___________________________________ Yahoo! Messenger: chiamate gratuite in tutto il mondo http://it.beta.messenger.yahoo.com |
|
From: <he...@ne...> - 2005-07-08 10:18:21
|
Hi David, > As of version 0.62, TC does support literals as program identifiers > (PROGRAM-ID). Good news. Thank you for the information. > TC uses the STDCALL (C call convention) as a default, so the STDCALL > keyword is NOT required. Refering to the following TC grammar from the news group archive, TC is usi= ng CDECL as default... :-) =20 > Grammar: > CALL [ STDCALL | WINAPI | CDECL ] name .... =20 > If the call convention option is omitted, the default will be CDECL, or > the standard C call convention. This is what TC normally uses. > Note that no entries in the SPECIAL-NAMES clause are required. Best regards Stefan Machen Sie aus 14 Cent spielend bis zu 100 Euro! Die neue Gaming-Area von Arcor - =FCber 50 Onlinespiele im Angebot. http://www.arcor.de/rd/emf-gaming-1 |
|
From: David E. <de...@us...> - 2005-07-08 05:49:00
|
BB wrote: > How do I invoke the option to map files using the DD_ environment > variables? > > You included some kind of compiler option or something? > > (Yes I know I'm losing it) > > Jim Morcombe > (using someone else's computer) You have define this option at the configure step. $./configure --help ... --enable-mfcomp enable MF compatibility features ... Since 'DD_' is a MF option, $./configure --enable-mfcomp then build the compiler and run-time. |
|
From: David E. <de...@us...> - 2005-07-08 03:55:26
|
Thanks for the information. Stefan Heublein wrote: > ... > - TC doesn't support literals as program identifiers As of version 0.62, TC does support literals as program identifiers (PROGRAM-ID). > - TC requires the STDCALL keyword for DB2 api calls (Microfocus COBOL: > SPECIAL-NAMES. CALL-CONVENTION 74 IS DB2API. CALL DB2API > "<api function>") Unfortunatly, according to the standard, the meaning of the call convention is implementor-defined. TC uses the STDCALL (C call convention) as a default, so the STDCALL keyword is NOT required. Since the SPECIAL-NAMES section is only partially implimented, so the CALL-CONVENTION clause is not implimented. > - I ran into problems with the precompiler generated "by content" > parameter passing to the DB2 api. Converting "by content" to "by > reference" solved the problem. Later I found another solution for > this problem. > When aligning and enlarging the passed structure to word boundary > (4 bytes), the "by content" parameter passing can remain unchanged... Sounds like a boundary (4 bytes) bug of some sort. |
|
From: Stefan H. <he...@ne...> - 2005-07-07 22:37:41
|
Hi, it's possible to compile and run the IBM supplied DB2 COBOL samples using= TC on Windows. First of all, you must compile the COBOL source which contains embedded S= QL with the DB2 precompiler supplied by IBM (included in the free applicatio= n development client package). The precompiler is capable of generating Microfocus COBOL compatible code. This leads to plain COBOL source (witho= ut embedded SQL), which has to be modified for compiling with TC: - TC doesn't support literals as program identifiers - TC requires the STDCALL keyword for DB2 api calls (Microfocus COBOL: SPECIAL-NAMES. CALL-CONVENTION 74 IS DB2API. CALL DB2API "<api function>"= ) - I ran into problems with the precompiler generated "by content" paramet= er passing to the DB2 api. Converting "by content" to "by reference" solved = the problem. Later I found another solution for this problem. When aligning a= nd enlarging the passed structure to word boundary (4 bytes), the "by conten= t" parameter passing can remain unchanged... Last, but not least, you have to link the TC compiled module to the DB2 a= pi libs. These libs are intended for use with Microsoft's Visual C and have = to be converted to Mingw usable libs before (see Mingw faqs). Good luck! I succeeded to compile and run a COBOL program containing embedded (stati= c) SQL and accessing DB2 for z/OS (using DB2 Connect). Best regards Stefan -----Urspr=FCngliche Nachricht----- Von: tin...@li... [mailto:tin...@li...]Im Auftrag von --__--__-- Message: 1 Date: Tue, 5 Jul 2005 21:59:35 -0700 (PDT) From: nikil chakravarthy <nik...@ya...> To: tiny-cobol-users <tin...@li...> Subject: [Tiny-cobol-users] Can i call DB2 database from tinyCOBOL Hi All, I am newbie for tinyCOBOL development. I am struggling with finding information about tinyCOBOL with DB2 database access. Can somebody let me know whether it is possible to connect to DB2 from tinyCOBOL and send me some URL's and resources. Your help is very much appreciated. Looking forward for positive response. Thanks & Regards, Nikil __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --__--__-- Message: 2 Date: Wed, 06 Jul 2005 02:35:56 -0400 From: David Essex <de...@us...> Reply-To: tiny-cobol-users <tin...@li...> To: tiny-cobol-users <tin...@li...> Subject: Re: [Tiny-cobol-users] Can i call DB2 database from tinyCOBOL nikil chakravarthy wrote: > I am newbie for tinyCOBOL development. I am struggling > with finding information about tinyCOBOL with DB2 > database access. Can somebody let me know whether it > is possible to connect to DB2 from tinyCOBOL and send > me some URL's and resources. Your help is very much > appreciated. Looking forward for positive response. TC does not have an SQL pre-processor, thus you can only access any SQL database using the native API, and not using embedded SQL. If DB2 includes an SQL pre-processor for COBOL, and I think it does, the following may (or may not) work. Pass the embedded SQL COBOL program thru the DB2 SQL pre-processor for COBOL. And then using TC, compile it's output adding the appropriate DB2 library(s) in the link step. |
|
From: David E. <de...@us...> - 2005-07-07 18:17:55
|
David Essex wrote:
> Yes, there are several problems here.
> First the TC grammar does not conform to the COBOL85 standard.
>
> Syntax:
> STRING {
> {identifier-1 | literal-1}...
> DELIMITED [BY]
> {identifier-2 | literal-2 | SIZE }
> }...
> INTO identifier-3
> ...
OK, I was wrong, and the two books I consulted were wrong.
I'm not sure if this was part of the original COBOL 1985 standard, or a
later modification, but according to the COBOL 1989 (draft) standard:
STRING ...
The DELIMITED phrase may be omitted only immediately preceding the INTO
phrase. If it is omitted, DELIMITED BY SIZE is implied.
> Carlos Gomes wrote:
>
>> I am getting a invalid result when use STRING verb.
>> The sample above has 3 similar STRINGs, using DELIMITED
>> BY SPACES the result is strange!!
>> ...
>> Result in:
>>
>> DISPLAY 1--> INSERT,999,'12345');
>> DISPLAY 2--> INSERT INTO TEST ,999,'12345 ');
>> DISPLAY 3--> INSERT INTO TEST ,999,'12345 ');
I don't see what the problem is.
Exactly what output did you expect ?
|
|
From: BB <be...@by...> - 2005-07-07 07:47:17
|
David, How do I invoke the option to map files using the DD_ environment variables? You included some kind of compiler option or something? (Yes I know I'm losing it) Jim Morcombe (using someone else's computer) |
|
From: David E. <de...@us...> - 2005-07-07 06:05:15
|
Yes, there are several problems here.
First the TC grammar does not conform to the COBOL85 standard.
Syntax:
STRING {
{identifier-1 | literal-1}...
DELIMITED [BY]
{identifier-2 | literal-2 | SIZE }
}...
INTO identifier-3
So the following grammar is invalid,
STRING ...
WTEXT1 DELIMITED BY SIZE,
"'", ");"
INTO WRESULT.
STRING ...
");"
INTO WRESULT.
and should be as follows;
STRING ...
WTEXT1 DELIMITED BY SIZE,
"'" ");" DELIMITED BY SIZE,
INTO WRESULT.
STRING ...
");" DELIMITED ...
INTO WRESULT.
The second problem is invalid output, may be (or not) related to the
grammar problem.
So further investigation will be required.
Carlos Gomes wrote:
> I am getting a invalid result when use STRING verb.
> The sample above has 3 similar STRINGs, using DELIMITED
> BY SPACES the result is strange!!
> ...
> WORKING-STORAGE SECTION.
> 01 WRESULT PIC X(100) VALUE SPACES.
> 01 WTEXT PIC X(100) VALUE SPACES.
> 01 WTEXT1 PIC X(10) VALUE "12345 ".
> 01 W9 PIC 999 VALUE 999.
> PROCEDURE DIVISION.
> PARAG.
> STRING "INSERT INTO TEST ",
> ",",W9,
> ",","'",
> WTEXT1 DELIMITED BY SPACES, "'",
> ");" INTO WRESULT.
> DISPLAY WRESULT.
> MOVE SPACES TO WRESULT.
> STRING "INSERT INTO TEST ",
> ",",W9,
> ",","'",
> WTEXT1 DELIMITED BY SIZE, "'",
> ");" INTO WRESULT.
> DISPLAY WRESULT.
> MOVE SPACES TO WRESULT.
> STRING "INSERT INTO TEST ",
> ",",W9,
> ",","'",
> WTEXT1 , "'",
> ");" INTO WRESULT.
> DISPLAY WRESULT.
> STOP RUN.
>
> Result in:
>
> DISPLAY 1--> INSERT,999,'12345');
> DISPLAY 2--> INSERT INTO TEST ,999,'12345 ');
> DISPLAY 3--> INSERT INTO TEST ,999,'12345 ');
|
|
From: Carlos G. <cg...@ya...> - 2005-07-06 19:25:10
|
I am getting a invalid result when use STRING verb. The sample above has 3 similar STRINGs, using DELIMITED BY SPACES the result is strange!!
Can anybody help me?
IDENTIFICATION DIVISION.
PROGRAM-ID. PROG.
AUTHOR. S.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
SPECIAL-NAMES.
DECIMAL-POINT IS COMMA.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 WRESULT PIC X(100) VALUE SPACES.
01 WTEXT PIC X(100) VALUE SPACES.
01 WTEXT1 PIC X(10) VALUE "12345 ".
01 W9 PIC 999 VALUE 999.
PROCEDURE DIVISION.
PARAG.
STRING "INSERT INTO TEST ",
",",W9,
",","'",
WTEXT1 DELIMITED BY SPACES, "'",
");" INTO WRESULT.
DISPLAY WRESULT.
MOVE SPACES TO WRESULT.
STRING "INSERT INTO TEST ",
",",W9,
",","'",
WTEXT1 DELIMITED BY SIZE, "'",
");" INTO WRESULT.
DISPLAY WRESULT.
MOVE SPACES TO WRESULT.
STRING "INSERT INTO TEST ",
",",W9,
",","'",
WTEXT1 , "'",
");" INTO WRESULT.
DISPLAY WRESULT.
STOP RUN.
Result in:
DISPLAY 1--> INSERT,999,'12345');
DISPLAY 2--> INSERT INTO TEST ,999,'12345 ');
DISPLAY 3--> INSERT INTO TEST ,999,'12345 ');
---------------------------------
Yahoo! Acesso Grátis: Internet rápida e grátis. Instale o discador agora! |
|
From: David E. <de...@us...> - 2005-07-06 06:37:19
|
nikil chakravarthy wrote: > I am newbie for tinyCOBOL development. I am struggling > with finding information about tinyCOBOL with DB2 > database access. Can somebody let me know whether it > is possible to connect to DB2 from tinyCOBOL and send > me some URL's and resources. Your help is very much > appreciated. Looking forward for positive response. TC does not have an SQL pre-processor, thus you can only access any SQL database using the native API, and not using embedded SQL. If DB2 includes an SQL pre-processor for COBOL, and I think it does, the following may (or may not) work. Pass the embedded SQL COBOL program thru the DB2 SQL pre-processor for COBOL. And then using TC, compile it's output adding the appropriate DB2 library(s) in the link step. |
|
From: nikil c. <nik...@ya...> - 2005-07-06 04:59:49
|
Hi All, I am newbie for tinyCOBOL development. I am struggling with finding information about tinyCOBOL with DB2 database access. Can somebody let me know whether it is possible to connect to DB2 from tinyCOBOL and send me some URL's and resources. Your help is very much appreciated. Looking forward for positive response. Thanks & Regards, Nikil __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
|
From: David E. <de...@us...> - 2005-07-05 16:27:24
|
steven gao wrote: > Can Java or c program call cobol modules? in Tinycobol > sample files, i find COBOL program file can be easy to > call c file program. > But COBOL as a legacy system, we often use our new Java > or C modules to call COBOL file.are there any methods? Yes, TC compiled COBOL (sub)programs can call C functions, and C programs can call COBOL (sub)programs. There are several examples in the 'test.code' directories. Just think of TC compiled COBOL (sub)programs as equivalent to C functions, with a return type of INT. I would suggest using the current CVS version (0.62.13), as it has options to define entry points. AFAIK, no testing has been done using JAVA. |
|
From: steven g. <ste...@gm...> - 2005-07-05 14:50:44
|
Hi, Can Java or c program call cobol modules? in Tinycobol sample files, i find COBOL program file can be easy to call c file program.But COBOL as a legacy system, we often use our new Java or C modules to call COBOL file. are there any methods? Steven |
|
From: David E. <de...@us...> - 2005-07-05 02:17:16
|
Massimo Colani wrote: > I think Roland is right. By configuring Tiny Cobol 0.62, > everything goes ok when the test for color_set is positive. > When this test fails, the whole make of TC is not correct > and the screen layout is bot working. > > Look here, this is a example program I am running on a VT 510 > genuine terminal, but it also fails on the system console > with TERM=linux: Yes, there is definitely some thing wrong. It appears that the entries and attributes are out of sync. The problems can be found in version 0.56 and later. |
|
From: Massimo C. <mas...@ya...> - 2005-07-04 07:42:26
|
Hello,
I think Roland is right. By configuring Tiny Cobol 0.62, everything goes ok when the test for color_set is positive. When this test fails, the whole make of TC is not correct and the screen layout is bot working.
Look here, this is a example program I am running on a VT 510 genuine terminal, but it also fails on the system console with TERM=linux:
IDENTIFICATION DIVISION.
PROGRAM-ID. TSCR.
DATA DIVISION.
WORKING-STORAGE SECTION.
77 W-SOMETHING PIC X(20).
SCREEN SECTION.
01 S-TESTSCREEN BLANK SCREEN.
03 LINE 10 COLUMN 10 VALUE "Enter something:".
03 LINE 10 COLUMN 27 PIC X(20) USING W-SOMETHING
HIGHLIGHT UNDERLINE.
PROCEDURE DIVISION.
MOVE SPACES TO W-SOMETHING.
DISPLAY S-TESTSCREEN.
ACCEPT S-TESTSCREEN.
DISPLAY SPACES.
DISPLAY "$" W-SOMETHING "$".
STOP RUN.
The second term erases the first one and the screen flashes with every key pressed. The output of ./tscr | tee tscr.out is here uuencoded:
begin 600 tscr.out
M&S<;6S$[,C1R&S@;6T@;6S)*&ULQ,#LQ2"`@("`@("`@($5N=&5R('-O;65T
M:&EN9SH;6T@;6S)*&ULQ,#LT-T@;6T@;6S)*&ULQ,#LR-T@;6T@;6S)*&ULQ
M,#LQ2"`@("`@("`@("`@("`@("`@("`@("`@("`@2!M;2!M;,DH;6S$P.S%(
M("`@("`@("`@("`@("`@("`@("`@("`@("!(91M;2!M;,DH;6S$P.S%(("`@
M("`@("`@("`@("`@("`@("`@("`@("!(96P;6T@;6S)*&ULQ,#LQ2"`@("`@
M("`@("`@("`@("`@("`@("`@("`@2&5L;!M;2!M;,DH;6S$P.S%(("`@("`@
M("`@("`@("`@("`@("`@("`@("!(96QL;QM;2!M;,DH;6S$P.S%(("`@("`@
M("`@("`@("`@("`@("`@("`@("!(96QL;R`@("`@("`@("`@("`@(!M;,3`[
M,C=((!M;,3$[,D@D&ULQ,CLR2$AE;&QO("`@("`@("`@("`@("`@&ULQ,SLR
;2"0;6S(T.S%(&UL_,C5H&S<;6S$[,C1R&S@-
`
end
I hope this works because my Windows does not seem to like this cut-and-paste.
I tried several versions of TC. Like Roland said, the problem occurs since version 0.56 here, too.
Massimo
---------------------------------
Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3 |
|
From: David E. <de...@us...> - 2005-07-04 03:01:38
|
ROLAND RENNINGER wrote: > David Essex wrote: > >>ROLAND RENNINGER wrote: >> >>Both the underline and highlight features work on my system. >>Both in an xterm and standard Linux terminal. >> >>The 'ncurses' library does generate the escape sequences. >> >>Looking at your TC executable library dependencies, I noticed you are >>using and old version (3.4) of the 'ncurses' library. > ... > Well, thanks for your explaination. For the (n)curses library > is rooted deep in the operating system, noone here is enthusiastic > about replacing it, for TC is the only software having problems > with the old version. If I recall, the objective was to determine if a newer version of the (n)curses library fixed the problem. The reason I suggested upgrading the OS, to say the 2.2 kernel (1999), is because I think that it is the easiest way to test and resolve the problem. Just use an old 486 (or above) with 16M RAM and a network card. Then install a 2.2 system (without X), compile TC and test applications. This could be achieved in a couple of hours. The alternative is to upgrade to a new (n)curses library, or have more than one (n)curses library on the old system (is this possible ?). Since these options may make you system un-usable, it will require some test system. This option would require a lot more work. > What we are not able to understand is why nobody wants or can explain > why TC <= 0.55 worked, and the newer versions do not work properly any > more. That's fact, and we can provide lots of screenshots to prove > this. So, something must have changed in the meantime inside the TC > source code. Well here the reasons. First of all, the people who worked on that portion of the TC Run-Time are no longer active contributors to TC. Some are not even on TC mailing list. Personally I'm not very familiar with the (n)curses library, or terminals in general. And any information terminals is very hard to find. In an attempt to isolate the problem, I've compiled and run some test programs using TC version 0.55 and the current CVS version. Both using ncurses version 5. While both versions run, the TC 0.55 version seams more stable, as it can be used with different TERM settings. A lot of changes have been made to the curses section of the run-time since between 0.55 and 0.62, so it may take some time to try to isolate the problem(s). |
|
From: ROLAND R. <R.R...@GM...> - 2005-07-03 19:06:19
|
David Essex wrote: > ROLAND RENNINGER wrote: > > Both the underline and highlight features work on my system. Both in an > xterm and standard Linux terminal. > > The 'ncurses' library does generate the escape sequences. > > Looking at your TC executable library dependencies, I noticed you are > using and old version (3.4) of the 'ncurses' library. Well, thanks for your explaination. For the (n)curses library is rooted deep in the operating system, noone here is enthusiastic about replacing it, for TC is the only software having problems with the old version. What we are not able to understand is why nobody wants or can explain why TC <= 0.55 worked, and the newer versions do not work properly any more. That's fact, and we can provide lots of screenshots to prove this. So, something must have changed in the meantime inside the TC source code. Rol'still coding on VMS'and |