Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
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
 
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

Senior Member


Joined: 14 Mar 2007
Posts: 10478
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

Senior Member


Joined: 14 Mar 2007
Posts: 10478
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
This topic is locked: you cannot edit posts or make replies. To remove spaces in a variable length... Selvarajars JCL & VSAM 1 Thu Jun 21, 2018 1:07 pm
No new posts MXG - Processing Compressed DB2 SMF r... vasanthz All Other Mainframe Topics 2 Thu May 10, 2018 12:47 am
No new posts Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts Limit in Length for a CICS START seahawk789 CICS 6 Mon Apr 02, 2018 8:34 pm
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us