Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: AMCM
  • Order by date
  1. AMCM

    💥 did you see chatbot COBOL source? And.... did you like it or was it even clean compiled?? 🤣

    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...
  2. AMCM

    💥 did you see chatbot COBOL source? And.... did you like it or was it even clean compiled?? 🤣

    Hello I used it to convert a cobol file to csv the structure of the program was correct but it didn't compile correctly.
  3. AMCM

    COBOL SEQQUENTIAL FILE TO CSV

    OK , Thank you for your help , sorry for the delay of the answer
  4. AMCM

    COBOL SEQQUENTIAL FILE TO CSV

    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...
  5. AMCM

    COBOL SEQQUENTIAL FILE TO CSV

    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...
  6. AMCM

    COBOL SEQQUENTIAL FILE TO CSV

    OK , thank you for your help.
  7. AMCM

    COBOL SEQQUENTIAL FILE TO CSV

    @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...
  8. AMCM

    COBOL SEQQUENTIAL FILE TO CSV

    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#...
  9. AMCM

    COBOL SEQQUENTIAL FILE TO CSV

    yes but with all of them foo bar,baz,spam,eggs ; specially when there are many spaces
  10. AMCM

    COBOL SEQQUENTIAL FILE TO CSV

    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...
  11. AMCM

    COBOL ERROR : Transfering data from txt file to another

    HELLO , my data looks like this : 22346AROMANIACS E2005010 22346AROMANIACS E1005010 22346AROMANIACS E2005010 22346AROMANIACS E1005010 22346AROMANIACS E1005010 12344AROMANTICS E1802325 12344AROMANTICS E3002005 12344AROMANTICS...
  12. AMCM

    COBOL ERROR : Transfering data from txt file to another

    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"...
  13. AMCM

    COBOL ERROR : Transfering data from txt file to another

    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 .
  14. AMCM

    COBOL ERROR : Transfering data from txt file to another

    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...
  15. AMCM

    COBOL ERROR : Transfering data from txt file to another

    HELLO , IDENTIFICATION DIVISION. PROGRAM-ID. SeqRead. ENVIRONMENT DIVISION. INPUT-OUTPUT SECTION. FILE-CONTROL. SELECT StudentFile ASSIGN TO "C:\Users\Hp\Documents\NT5.txt" ORGANIZATION IS LINE SEQUENTIAL. SELECT NSTUDENT ASSIGN TO...

Part and Inventory Search

Back
Top