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 Usergroups Profile Log in to check your private messages Log in
 

 

Shifting the fields in the variable length records.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
rguhanath

New User


Joined: 16 Oct 2006
Posts: 80
Location: chennai

PostPosted: Tue May 20, 2008 5:29 pm    Post subject: Shifting the fields in the variable length records.
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Tue May 20, 2008 5:40 pm    Post subject: Reply to: Shifting the fields in the variable length records
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: 80
Location: chennai

PostPosted: Tue May 20, 2008 6:38 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Tue May 20, 2008 6:55 pm    Post subject: Reply to: Shifting the fields in the variable length records
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    Post subject:
Reply with quote

rguhanath,

I answered your question here

http://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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts DFSORT MUL FIELDS tspr52 DFSORT/ICETOOL 16 Fri Mar 03, 2017 11:53 pm


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