IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Untring a CSV File delimited by comma


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
learnmf

Active User


Joined: 14 Mar 2005
Posts: 123

PostPosted: Fri Aug 19, 2005 7:28 pm
Reply with quote

Dear Friends


I
Quote:
have a input record.it is in comma separated format(CSV format).
i want to untring it delimited by comma.
Now the problem is i don't want all the value.

Can it be possible to untring and get specific values only?


Thanks
Chandra
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Fri Aug 19, 2005 8:04 pm
Reply with quote

Chandra,

Your post here seems to be relatoed to the one going parallel for program logic.
Quote:
Now the problem is i don't want all the value.

Can it be possible to untring and get specific values only?


I m not sure about getting only specifc values...but let them come...Its up to you to use them or not....Isn't it....

Regards,

Priyesh.
Back to top
View user's profile Send private message
learnmf

Active User


Joined: 14 Mar 2005
Posts: 123

PostPosted: Fri Aug 19, 2005 8:33 pm
Reply with quote

Yes priyesh
i have done lby taking all .Still i think to get specific value.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Aug 20, 2005 10:08 pm
Reply with quote

Why don't you show us some of your data and what you want to unstring and what you don't? Maybe there's a solution, but you've got to be specific.
Back to top
View user's profile Send private message
learnmf

Active User


Joined: 14 Mar 2005
Posts: 123

PostPosted: Mon Aug 22, 2005 9:07 am
Reply with quote

Ok friends i am giving an Example


Quote:
01 record
05 ws-rq-id pic x
05 ws-b-id pic x
05 ws-al pic xxx
05 ws-a redefine ws-al
10 ws-z pic x
10 ws-y pic x
10 filler pic x
05 ws-b redefine ws-al
10 ws-m pic x
10 ws-n pic x
10 ws-h pic x


Now i want to unstring ws-a
in another step i want to unstring ws-b
It is a comma Separated file(CSV records)
Back to top
View user's profile Send private message
elonics

New User


Joined: 05 Jul 2005
Posts: 49
Location: India

PostPosted: Mon Aug 22, 2005 10:08 am
Reply with quote

Hi,
U can unstring ur unnecessary fields to dummy variables and the necessary fields to ur working variables. So that u can use ur working variables in the next process of ur task.


Elonics.
----------------------------------------------------------------------------------
I May the Best or atleast Better than many but i am never Worst
----------------------------------------------------------------------------------
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top