That is true , also i think its related to the chatbot not knowing how to declare the file the correct way(how they are indexed and there keys for example) and so the file handling verbs or commands cause compiling errors . If its addressed correctly it can be very beneficial , specially...
https://www.ibm.com/docs/en/app-connect/11.0.0?topic=functions-trim-function
This is the web site i went to ., after that i found that excel does it automatically for csv data , sorry to have wasted your time .
But the problem i found is that i want comas between more than 2 space i.e the...
HELLO ,
INITIALIZE MY-OUTPUT-LINE
* remove leading spaces from INPUT-LINE
MOVE FUNCTION TRIM(MY-INPUT-LINE) TO WS-LINE
MOVE FUNCTION TRIM(LEADING zeros FROM MY-INPUT-LINE) to WS-LINE
I tried adding the third line to remove leading zeros from another file i have but it...
@MIKROM , thank you very much , if you could clarify something for me :
* remove leading spaces from INPUT-LINE
MOVE FUNCTION TRIM(MY-INPUT-LINE) TO WS-LINE
* compute length of trimmed line (without trailing spaces)
COMPUTE LINE-LENGTH = FUNCTION LENGTH(FUNCTION...
It was just a typing error , what i want is to replace the first space or the last with a coma :
exp input : 2400 Xrayonten Xaviere 2424224THVStreet,e#
2500 Youngnten Yannire 25252YongeSStreete#
exp output: 2400,Xrayonten,Xaviere,2424224THVStreet,e#...
Hello ,
im trying to convert sequential cobol file to csv using data i found online.
IDENTIFICATION DIVISION.
PROGRAM-ID. CPYFILES.
AUTHOR. M.
ENVIRONMENT DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
SELECT MY-INPUT-FILE ASSIGN TO...
I tried it with perform loop but it doesnt work :
IDENTIFICATION DIVISION.
PROGRAM-ID. CPYFILES.
AUTHOR. MIKROM.
ENVIRONMENT DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
SELECT MY-INPUT-FILE ASSIGN TO
"C:\Users\Hp\Documents\my_input.txt"...
Thank you very much .
I Have one last question I'm trying to convert a file that is in columns to a csv format but when i read the line can I use the initialize function to replace spaces by "," ?
I tried it but it keeps giving me an error .
Thank for responding .
IM using Opencobol IDE
LM51 IS THE COURSE CODE and the F is the gender .
I Placed the boolean there in order not to use a W-S section , Sometimes i get errors whithout explanation the ide just crashes .
DO you think if i put the whole line in an X variable that has...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.