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

Converting Record Format FB to VB


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

New User


Joined: 17 Aug 2006
Posts: 4
Location: Dalian China

PostPosted: Thu Aug 17, 2006 9:25 am
Reply with quote

Hello,

Am new here.

Just wanna seek out some help.

Can anyone pls tell me how to convert RECFM=FB to VB ???

Thanks in advance.
Shie
Back to top
View user's profile Send private message
chiranjeevi_mca

New User


Joined: 19 Feb 2006
Posts: 27

PostPosted: Thu Aug 17, 2006 9:45 am
Reply with quote

Hi,

Its not possible to change FB to VB directly.

for that just create a new file with VB and pass the data to that file.
this is the only option.


bye..
have a nice day
Back to top
View user's profile Send private message
shie_aguas

New User


Joined: 17 Aug 2006
Posts: 4
Location: Dalian China

PostPosted: Thu Aug 17, 2006 9:51 am
Reply with quote

Thanks,

A follow up question though, if I have a comma seperated file, which i have defined with a VB record format. Will converting it to FB result to a major impact on the records?
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Thu Aug 17, 2006 10:13 am
Reply with quote

hi,

Your requirement is to convert a FB dataset to VB.

Y don't u copy the dataset thru jcl using SORT and OUTFIL FNAMES=DDname,FTOV

~Vamsi
Back to top
View user's profile Send private message
shie_aguas

New User


Joined: 17 Aug 2006
Posts: 4
Location: Dalian China

PostPosted: Thu Aug 17, 2006 10:16 am
Reply with quote

OK, I will try that one.

Thanks so much Shreevamsi.... icon_biggrin.gif
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Thu Aug 17, 2006 8:45 pm
Reply with quote

Quote:
Can anyone pls tell me how to convert RECFM=FB to VB ???


See the "FB to VB conversion" Smart DFSORT Trick at:

www.ibm.com/servers/storage/support/software/sort/mvs/tricks/

Quote:
if I have a comma seperated file, which i have defined with a VB record format. Will converting it to FB result to a major impact on the records?


It's not clear what you're asking. "Major impact" in terms of what? Please explain in more detail what you want to know.
Back to top
View user's profile Send private message
shie_aguas

New User


Joined: 17 Aug 2006
Posts: 4
Location: Dalian China

PostPosted: Fri Aug 18, 2006 8:41 am
Reply with quote

Hi Frank,

My problem is solved now, and I used SORT to convert FB to VB recfm.

Though Im still curious with the CSV record format conversion.

What I meant about "Major Impact" is that, would it affect the alignment, re-align the fields or something like that?

Thanks in advance,
Shie
Back to top
View user's profile Send private message
SBMF390

New User


Joined: 27 Jul 2006
Posts: 9

PostPosted: Fri Aug 18, 2006 12:48 pm
Reply with quote

Hi,

we have one more method,

Sysut1 -> old file VB

Sysut2 -> New file FB

Use iebgener,
//SYSIN DD *
GENERATE MAXFLDS=1
RECORD FIELD=(Record length)
/*
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Fri Aug 18, 2006 8:16 pm
Reply with quote

Quote:
What I meant about "Major Impact" is that, would it affect the alignment, re-align the fields or something like that?


An RDW would be added to each record, so the data would start at position 5 instead of at position 1. If you used VLFILL, the records could also have different lengths.
Back to top
View user's profile Send private message
cheetz007

New User


Joined: 10 Aug 2006
Posts: 23

PostPosted: Wed Aug 30, 2006 9:50 pm
Reply with quote

On a similar subject, I'm trying to "merge" 2 files together. It's not really a merge, what I want to do is create a file which has fileA followed by fileB always in that order. The trouble is, fileA is FB 1691 and fileB is VB 833. I need the output to be FB 1691.

Is DFSORT a candidate for doing this? I have been trying to figure out how to do it with IEBGENER, but I can't seem to get it working, possibly because of the RDW you mentioned in your last post.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Aug 30, 2006 10:13 pm
Reply with quote

cheetz007,

Here's a DFSORT/ICETOOL job that will do what you asked for. Be sure to use MOD for the //OUT data set.

Code:

//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN1 DD DSN=...  input file1 (FB/1691)
//IN2 DD DSN=...  input file2 (VB/833)
//OUT DD DISP=MOD,DSN=...  output file (FB/1691)
//TOOLIN DD *
COPY FROM(IN1) TO(OUT)
COPY FROM(IN2) USING(CTL1)
/*
//CTL1CNTL DD *
  OUTFIL FNAMES=OUT,VTOF,OUTREC=(5,829,1691:X)
/*
Back to top
View user's profile Send private message
cheetz007

New User


Joined: 10 Aug 2006
Posts: 23

PostPosted: Thu Aug 31, 2006 2:25 pm
Reply with quote

Thanks Frank, that's exactly what I was looking for - you truly are a Guru!
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Thu Aug 31, 2006 9:11 pm
Reply with quote

Glad I could help.
Back to top
View user's profile Send private message
BODART_THIERRY

New User


Joined: 20 Mar 2006
Posts: 2

PostPosted: Fri Sep 08, 2006 7:32 pm
Reply with quote

Hello,
I have successfully used the FTOV parameter in this way

Code:

//ULBA1S1  EXEC PPSORT                           
//SORTIN   DD DISP=SHR,                         
//            DSN=L.G42661.BMCUNLD.ULPY09T.FXOPL
//SORTOUT  DD DSN=L.G42661.BMCUNLD.ULPY09T.TESTL,
//            DISP=(,CATLG,DELETE),UNIT=SYSDA,   
//            DCB=(LRECL=5000,RECFM=V),         
//            SPACE=(350,(46,9),RLSE),AVGREC=K   
//SYSIN    DD *                                 
  SORT FIELDS=COPY                               
  OUTFIL FNAMES=SORTOUT,FTOV                     
/*
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 Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
Search our Forums:

Back to Top