Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

IBM Tools :: Strings with double quotes having problem when used with DLM

$
0
0
Author: raja Arumugam
Subject: Strings with double quotes having problem when used with DLM
Posted: Thu Mar 30, 2017 10:34 am (GMT 5.5)

Hi All,
I am new to SAS and my requirement is to read the input file, delimit by asterisk(*). But am facing problem with the output data when the input field holds double quotes in the string. Below is the sample code snippet used.
Input:
"SAMP-ALL" STORES

Code:
DATA TEST;
INFILE FILE;
INPUT @1 NAME $CHAR17.;
FILE OUTFIL DLM='*' DSD;
PUT NAME;

Output
"""SAMP-ALL"" STORES"

An Extra double quotes are getting added up in the output. Please note I want the output file in a dynamic way. Any help to fix this would be grateful.

[/u][/code]


Viewing all articles
Browse latest Browse all 8500

Trending Articles