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

Shifting the fields in the variable length records.


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rguhanath

New User


Joined: 16 Oct 2006
Posts: 81
Location: chennai

PostPosted: Tue May 20, 2008 5:29 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue May 20, 2008 5:40 pm
Reply with quote

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
View user's profile Send private message
rguhanath

New User


Joined: 16 Oct 2006
Posts: 81
Location: chennai

PostPosted: Tue May 20, 2008 6:38 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue May 20, 2008 6:55 pm
Reply with quote

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 icon_evil.gif
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
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Tue May 20, 2008 9:14 pm
Reply with quote

rguhanath,

I answered your question here

ibmmainframes.com/viewtopic.php?p=133755#133755
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top