Search found 6 matches

by Salman
Wed Feb 26, 2014 3:41 pm
Forum: COBOL
Topic: Replace special characters with spaces in a string
Replies: 12
Views: 29474

Hi Payilagamch,

As I mentioned above we can use Inspect only in the case if we know the special characters in advance but in my case there are large number of special charcters and sometimes may be junnk(square...).
Hence, it will not work here.
by Salman
Wed Feb 26, 2014 3:34 pm
Forum: COBOL
Topic: Replace special characters with spaces in a string
Replies: 12
Views: 29474

Hi Payilagamch,

As I mentioned above we can use Inspect only in the case if we know the special characters in advance but in my case there are large number of special charcters and sometimes may be junnk(square...).
Hence, it will not work here.
by Salman
Wed Feb 26, 2014 2:34 pm
Forum: COBOL
Topic: Replace special characters with spaces in a string
Replies: 12
Views: 29474

Hi William, Actually its an address feild to which it receives from another system so there might be some junk values like 'square'.*/.... for which i need to remove it and fill it with spaces(Only Numerics and Alphabetics allowed). By performing the above code it satisfies but it will degrade the p...
by Salman
Wed Feb 26, 2014 9:48 am
Forum: COBOL
Topic: Replace special characters with spaces in a string
Replies: 12
Views: 29474

Hi Folks, Sorry for incomplete post. But as i mentioned, using Refernce Modification for every Feild, like if it is of x(250),then it has to check for 250 times and it will make it very tedious and hence the performance of the program degrades. So, i request to provide me an optimized way to fix thi...
by Salman
Tue Feb 25, 2014 4:15 pm
Forum: COBOL
Topic: Replace special characters with spaces in a string
Replies: 12
Views: 29474

Replace special characters with spaces in a string

Hi Folks, Can anyone please let me know how can i replace the special characters in a string with spaces? Ex: If i have a string 'ABC@123#d_efg)' then it should give me 'ABC 123 d efg ' By using INSPECT we can do it provided if we know the special characters in advance but in my case i can't do it e...
by Salman
Sun Sep 08, 2013 2:42 pm
Forum: COBOL
Topic: Reading a file and inserting data into a table
Replies: 2
Views: 6878

Reading a file and inserting data into a table

Hi Team, It would be very grateful of you if help me out in fixing the my below query. Requirement : Reading a PS file and inserting all the records into a DB2 table. My table structure : 08 Stu-Record occurrs 15 times 10 stu-name pic x(10) 10 stu address pic x(20) . . . Here am fine with opening,re...