View previous topic :: View next topic
|
Author |
Message |
jangam
New User
Joined: 02 Feb 2006 Posts: 7
|
|
|
|
hi
i want to read a seq. file which has length of 1200 and some 100 different lengths of text is there.we want to get the data in the file which is delimited by "," into some variable and write to another file with fixed length.
I want that using UNSTRING on input record to get the data independently with using 100 no of variables in UNSTRING statement and move to out put record to write in. |
|
Back to top |
|
|
elonics
New User
Joined: 05 Jul 2005 Posts: 49 Location: India
|
|
|
|
Hai Boss,
I didnt get you.Can you be more transparent.
Thanks,
Elonics. |
|
Back to top |
|
|
sbalajibe
New User
Joined: 15 Aug 2005 Posts: 62
|
|
|
|
hi
give us the fields of the input file and output file
thanks
Balaji |
|
Back to top |
|
|
nuthan
Active User
Joined: 26 Sep 2005 Posts: 146 Location: Bangalore
|
|
|
|
Hai Jangam,
Please explain that with some more details. |
|
Back to top |
|
|
jangam
New User
Joined: 02 Feb 2006 Posts: 7
|
|
|
|
hi
let take a Source record is length 1200 and all char..
see input is asdf,lkjhlh,asdfassdf,asdfasdf,lkjhlkjh,fqwerqwer,.................
like this around 100 values
And i got Destin variable size 100 char then with is one variable can i get all values using UNSTRING ......
Thanks for respond
jangam |
|
Back to top |
|
|
sure116
New User
Joined: 03 Feb 2006 Posts: 11
|
|
|
|
Hi jangam,
declare the Dstn variable with 12 subgroup items.
01 WS-DSTN.
05 WS-DSTN1 pic x(100).
05 WS-DSTN2 pic x(100).
05 WS-DSTN3 pic x(100).
||||||||||||||
||||||||||||||||||
05 WS-DSTN12 pic x(100).
Then unstring the Rec-A delimited by ',' into WS-Dstn variable
Then you will have reqd value..
Cheers
Suresh |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
I didnt get what is expected yet.... .... Dont mind dear... seems need a reboot of my machine...
Well, What I can understood is... Input file is a VB file...of LRCEL = 1200...
There are records with different record length (obviously it would be..it is VB file ) ...& there are 100 such types of different record length...
Now this is what I need to know...
Quote: |
we want to get the data in the file which is delimited by "," into some variable and write to another file with fixed length. |
Its better If can see I/P & Expected O/P.
Regards,
Priyesh. |
|
Back to top |
|
|
|