View previous topic :: View next topic
|
Author |
Message |
rguhanath
New User
Joined: 16 Oct 2006 Posts: 81 Location: chennai
|
|
|
|
Hi All,
i need one more help from you.
i have one file (fields are seperated by '|') is having variable record length(RECFM=FB).like below.
Code: |
1------------------------------------------------------------------500
sld|fj|lds|fl|dsj|fdj|fl|al|df|jld|jfd|lj|| <--spaces/blanks--> |3|4
d|f|d||jf|lj|dl|fj|d|fjd|lkjf -do- |2|a
df|jdk|l|fjl|dk|jf|dk|ljf|sd|lfjd|lsj|fl|sdf|jd|lf| -do- |2|1
df|j|ld|jfl|aj;l|j l|sj|fls|df| -do- |1|b
dk|f|lsa|jld|fsld|fj|flj|a df|jld|skldf| -do- |c|1
df|jd|lfj|df -do- |1|1
dklsd|kfl|asd|kf|als|df|df|dfd| -do- |a|1
|
I Want the output file(RECFM=FB) like below.
Code: |
1------------------------------------------------------------------500
sld|fj|lds|fl|dsj|fdj|fl|al|df|jld|jfd|lj|||3|4
d|f|d||jf|lj|dl|fj|d|fjd|lkjf|2|a
df|jdk|l|fjl|dk|jf|dk|ljf|sd|lfjd|lsj|fl|sdf|jd|lf||2|1
df|j|ld|jfl|aj;l|j l|sj|fls|df||1|b
dk|f|lsa|jld|fsld|fj|flj|a df|jld|skldf||c|1
df|jd|lfj|df|1|1
dklsd|kfl|asd|kf|als|df|df|dfd||a|1
|
Please tell is there any chance to do this using DFSORT and please let me know the sample jcl for this.
Thanks and Regards,
Nath R. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
not to be rude, but it would be wise to review Your understanding of
FB - fixed blocked
VB - variable blocked
( the blocked is really irrelevant here )
from the data between the code tags
the first set of record looks like F... fixed
the second set looks like V... variable
and in the description of the problem You mixed up things quite a bit
please rewrite properly the question and after that I' ll take care of deleting the unneded posts |
|
Back to top |
|
|
rguhanath
New User
Joined: 16 Oct 2006 Posts: 81 Location: chennai
|
|
|
|
Hi enrico sorichetti ,
i am sorry if you are not understanding properly my question.
What i mentioned above both files are in FB format.
File1 is in FB format (i converted it from VB to FB,)
Quote: |
is having variable record length(RECFM=FB).
|
above i mentioned only the record structure in the file, but file is in FB format.
File2- i want this file in FB format after delete the spaces also.
please let me know if you have any Queries.
Thanks and Regards,
Nath R. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
am sorry if you are not understanding properly my question. |
I understood perfectly Your questions
You want to reformat something and gave a confusing description
don' t blame me
Quote: |
is having variable record length(RECFM=FB). |
You should have written free form, comma separated, slash separated
IT language has a very strict terminology in order not to confuse things
You even wrote variable length in the title |
|
Back to top |
|
|
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
Back to top |
|
|
|