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

Global Moderator


Joined: 14 Mar 2007
Posts: 10375
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: 10375
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 SORT BUT RETAIN HIGHEST VALUE ON NON-... leondan22 DFSORT/ICETOOL 2 Thu Dec 14, 2017 8:13 pm
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Inefficient BUILD - VB records paddin... Daniel Prosser SYNCSORT 6 Thu Dec 14, 2017 3:52 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am

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