Issue with .csv file when sending it through email by JCL

JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...
Papya013
Posts: 35
Joined: Wed Nov 06, 2013 6:53 pm
Skillset: COBOL JCL DB2
Referer: Friend

Issue with .csv file when sending it through email by JCL

Postby Papya013 » Fri Feb 09, 2018 3:53 pm

Hi Team,

I have a delimited file ( delimiter is "."). When I am trying to send the file by using JCL in .csv format. I am getting all the fields in only one column.

Input
BALESH.123.ABC.789

Expected outcome:

BALESH 123 ABC 789 in four different columns on the .csv file.

Please help me to fix this.

Regards,
Balesh GG

Robert Sample
Global moderator
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
Referer: other forum
Location: Dubuque, Iowa, USA

Re: Issue with .csv file when sending it through email by JC

Postby Robert Sample » Fri Feb 09, 2018 6:15 pm

Your output file will be BALESH.123.ABC.789 -- EXACTLY WHAT THE INPUT DATA SET WAS! It is up to you to MANUALLY open the .csv file in Excel; once you do that and tell Excel to use the period as a field separator you will have the data in 4 columns in Excel.

You provided your expected output, but you did NOT provide any information about the difference between your expected output and the actual output.

Papya013
Posts: 35
Joined: Wed Nov 06, 2013 6:53 pm
Skillset: COBOL JCL DB2
Referer: Friend

Re: Issue with .csv file when sending it through email by JC

Postby Papya013 » Fri Feb 09, 2018 6:24 pm

Hi Robert,

Sorry for not providing the complete information.

Current outcome:

BALESH.123.ABC.789 which is populated in only one column of the .csv file

Expected outcome:

BALESH 123 ABC 789 in four different columns on the .csv file.

Please let me know if this information helps to help me :)

Regards,
Balesh GG

NicC
Global moderator
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
Referer: Google
Location: Pushing up the daisies (almost)

Re: Issue with .csv file when sending it through email by JC

Postby NicC » Fri Feb 09, 2018 7:47 pm

Have you told Excel that the fields are period-delimited and not comma-delimited?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic


  • Similar Topics
    Replies
    Views
    Last post