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

All Other Mainframe Topics :: RE: Strings with double quotes having problem when used with DLM

$
0
0
Author: raja Arumugam
Subject: Reply to: Strings with double quotes having problem when used with DLM
Posted: Fri Mar 31, 2017 11:28 am (GMT 5.5)

@vasanthz Thanks I just gave the issue field alone as an example for your easy reference. I do have ~200 fields to delimit. Below is the sample how i want the output.

Input
"SAMP-ALL" STORES31 YORK
Name : 1-17 (17 byte char)
Age : 18-19 (2 byte numeric)
City : 20-22 (3 byte Char) - Spaces are present
State: 23-26 (4 Byte char)

Actual Output:
"""SAMP-ALL"" STORES"*31**YORK

Expected Output
"SAMP-ALL" STORES*31**YORK

In the above output you should be able to see the difference in name field.(Dynamic way) If spaces are present in City field i just want the asterisk alone to represent the field and not the spaces like fixed fielded.

@Robert Thanks for your reply. All the fields are working fine in DLM DSD option except for the string with double quotes, hence wanted to check with you guys if anyone of you had faced this issue.
I tried using arrays it worked fine but to load the variables into array all the fields should be in same data type which takes more LOC to convert all the numeric variables to Char.


Viewing all articles
Browse latest Browse all 8500

Trending Articles