Quantcast
Channel: AS400 program – IT Answers
Viewing all articles
Browse latest Browse all 4

How to remove the double quotes in CSV file in iSeries

$
0
0

Hi

The command is to remove the double quotes present in CSV file.

I have used one shell command.

Strqsh cmd(Sed -e ‘s/””//g’ file name > new file name)

I have to write this command in CLLE program.

CHGVAR     VAR(&RPLC) VALUE(‘Sed’ *BCAT ‘-e’ *BCAT +      
           ‘s/””//g’ *BCAT ‘/’ *TCAT &USER +              
             *TCAT &WOUTFN *TCAT ‘_US’ *TCAT ‘_’ *TCAT +  
             &WRKDT *TCAT ‘.csv’ *bcat ‘>’ *bcat   +      
             ‘/’ *TCAT &USER *TCAT ‘/’ *TCAT &WOUTFN +    
            *TCAT ‘_US’ *TCAT ‘_’ *TCAT &WRKDT *TCAT +    
            ‘.csv’)                                       
strqsh     cmd(&rplc)      

This CHGVAR is throwing eroor.can u pls help me out in framing this command.

Thanks

The post How to remove the double quotes in CSV file in iSeries appeared first on IT Answers.


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images