Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Untring a CSV File delimited by comma

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Untring a CSV File delimited by comma
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: 1452
Location: Chicago, IL

PostPosted: Fri Aug 19, 2005 8:04 pm    Post subject: Re: unstring
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: Re: unstring
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts editting the file by inserting zeros ... pramodrsingh DFSORT/ICETOOL 9 Mon Aug 21, 2017 5:58 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am

Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us