[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [open-cobol-list] End of line character.
From: |
Sergey Kashyrin |
Subject: |
Re: [open-cobol-list] End of line character. |
Date: |
Thu, 7 Jun 2007 21:27:41 -0400 |
John,
Unix "system" call (as well as in NT) will not like CR at the end of the line.
You must put LOW-VALUE as a terminator of your string for that.
Regards,
Sergey
----- Original Message -----
From: "John R. Culleton" <address@hidden>
To: <address@hidden>
Sent: Thursday, June 07, 2007 6:36 PM
Subject: [open-cobol-list] End of line character.
Is there a symbolic name in Open Cobol (or in tiny) that represents
the end-of line character?
I am trying to create a string that I can feed to a
CALL "system"
statement that will execute a non-cobol program with parameters. Here
is what I have thus far:
MOVE SPACES TO CALLREC.
STRING "bookland.py ", "978160019", SERIAL,
" > foorec", ???
INTO CALLREC.
CALL "system" USING CALLREC.
The string should look like:
bookland.py 978160019123 >foorec (CR)
Where the last three digits will vary. Later on in the logic I open
foorec and use some of the results of the above step.
Possibly the program will work without the explicit end of line but I
am assuming not.
--
John Culleton
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
open-cobol-list mailing list
address@hidden
https://lists.sourceforge.net/lists/listinfo/open-cobol-list