MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Difference between convert and FTOV in DFSORT

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
issac1029
Intermediate


Joined: 10 Dec 2005
Posts: 159
Topics: 75

PostPosted: Tue Jun 20, 2006 1:18 am    Post subject: Difference between convert and FTOV in DFSORT Reply with quote

Hi all,

Only a question today,In dfsort progm guide I can only see 'convert' instead of 'FTOV'?It's another version of dfsort?It's release 14.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Jun 20, 2006 4:13 am    Post subject: Reply with quote

issac1029,

Convert parm is used to convert a variable block(VB) file to a fixed block(FB) file, where as FTOV parm just does the reverse i.e it converts a fixed block(FB) file to a Variable Block(Vb) file.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Tue Jun 20, 2006 10:34 am    Post subject: Reply with quote

Originally, DFSORT was only able to convert from VB to FB and the parameter to do that was named CONVERT. When I added the new function to convert from FB to VB, I called it FTOV to make it more descriptive. At the same time, I made VTOF an alias for CONVERT to also make it more descriptive.

Note that FTOV and VTOF were added to DFSORT R14 with a PTF in March, 2002.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Tue Jun 20, 2006 2:37 pm    Post subject: Reply with quote

Kolusu and Frank,

I had an FB file with the following contents and i first changed to VB.
Code:

SHEKAR.TEST.INPUT

SHEKAR                                                                 
KOLUSU                                                                 
FRANK                                                                   
ISSAC1029                                                               
MVSFORUMS                                                               

Organization  . . . : PS              Used tracks . . . . : 1               
Record format . . . : FB              Used extents  . . . : 1               
Record length . . . : 80                                                     
Block size  . . . . : 800                                                   
1st extent tracks . : 1                                                     
Secondary tracks  . : 1                                                     
Data set name type  :                 SMS Compressible  . : NO               
                                                                             
Creation date . . . : 2006/06/20      Referenced date . . : 2006/06/20       
Expiration date . . : ***None***                                   

My JCL:
Code:

//STEP010  EXEC PGM=SORT                                               
//SORTIN   DD DSN=SHEKAR.TEST.INPUT,DISP=SHR                           
//OUT      DD DSN=SHEKAR.TEST.OUTPUT,DISP=(NEW,CATLG,DELETE),         
//            SPACE=(TRK,(1,1),RLSE),UNIT=SYSDA                         
//SYSPRINT DD SYSOUT=*                                                 
//SYSOUT   DD SYSOUT=*                                                 
//SYSIN    DD *                                                         
   OPTION COPY                                                         
   OUTFIL FNAMES=(OUT),FTOV                                           
//

OUTPUT
Code:

SHEKAR.TEST.OUTPUT

Organization  . . . : PS              Used tracks . . . . : 1               
Record format . . . : VB              Used extents  . . . : 1               
Record length . . . : 84                                                     
Block size  . . . . : 27998                                                 
1st extent tracks . : 1                                                     
Secondary tracks  . : 1                                                     
Data set name type  :                 SMS Compressible  . : NO               
                                                                             
Creation date . . . : 2006/06/20      Referenced date . . : 2006/06/20       
Expiration date . . : ***None***                                                     

Later i wanted to convert the VB File to FB File using two ways using COVERT as well as VTOF parameter in two different steps but i am getting RC=16.Can you please help me out what exactly is the problem as i am unable to figure out?

My JCL
Code:

//STEP010  EXEC PGM=SORT                                               
//SORTIN   DD DSN=SHEKAR.TEST.OUTPUT,DISP=SHR                         
//OUT1     DD DSN=SHEKAR.TEST.OUT1,DISP=(NEW,CATLG,DELETE),           
//            SPACE=(TRK,(1,1),RLSE),UNIT=SYSDA,                       
//            DCB=(LRECL=80,RECFM=FB,BLKSIZE=800)                       
//SYSPRINT DD SYSOUT=*                                                 
//SYSOUT   DD SYSOUT=*                                                 
//SYSIN    DD *                                                         
   OPTION COPY                                                         
   OUTFIL FNAMES=(OUT1),CONVERT                                           
/*                                                                     
//STEP020  EXEC PGM=SORT                                               
//SORTIN   DD DSN=SHEKAR.TEST.OUTPUT,DISP=SHR                         
//OUT2     DD DSN=SHEKAR.TEST.OUT2,DISP=(NEW,CATLG,DELETE),           
//            SPACE=(TRK,(1,1),RLSE),UNIT=SYSDA,                       
//            DCB=(LRECL=80,RECFM=FB,BLKSIZE=800)                       
//SYSPRINT DD SYSOUT=*                                                 
//SYSOUT   DD SYSOUT=*                                                 
//SYSIN    DD *                                                         
   OPTION COPY                                                         
   OUTFIL FNAMES=(OUT2),VTOF                                           
/*                                                                     
//

OUTPUT MESSAGES
Code:

SYSOUT STEP010
ICE143I 0 BLOCKSET     COPY  TECHNIQUE SELECTED                                 
ICE250I 0 VISIT http://www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES AN
ICE000I 1 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R5 - 15:29 ON TUE JUN
             OPTION COPY                                                       
             OUTFIL FNAMES=(OUT1),CONVERT                                       
ICE201I 0 RECORD TYPE IS V - DATA STARTS IN POSITION 5                         
ICE126A 9 INCONSISTENT OUT1     IFTHEN 0 REFORMATTING FIELD FOUND               
ICE751I 0 C5-K05352 C6-Q95214 C7-K90000 C8-K05352 E9-Q95214 E7-K90000           
ICE052I 3 END OF DFSORT                                                         

SYSOUT STEP020
ICE143I 0 BLOCKSET     COPY  TECHNIQUE SELECTED                                 
ICE250I 0 VISIT http://www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES AN
ICE000I 1 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R5 - 15:29 ON TUE JUN
             OPTION COPY                                                       
             OUTFIL FNAMES=(OUT2),VTOF                                         
ICE201I 0 RECORD TYPE IS V - DATA STARTS IN POSITION 5                         
ICE126A 9 INCONSISTENT OUT2     IFTHEN 0 REFORMATTING FIELD FOUND               
ICE751I 0 C5-K05352 C6-Q95214 C7-K90000 C8-K05352 E9-Q95214 E7-K90000           
ICE052I 3 END OF DFSORT                                                         

_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Jun 20, 2006 2:49 pm    Post subject: Reply with quote

shekar123,

When converting a varaible Block file back fixed block file you need to specify OUTREC parm. Try this

Code:

//STEP010  EXEC PGM=SORT
//SORTIN   DD DSN=SHEKAR.TEST.OUTPUT,DISP=SHR
//OUT1     DD DSN=SHEKAR.TEST.OUT1,DISP=(NEW,CATLG,DELETE),
//            SPACE=(TRK,(1,1),RLSE),UNIT=SYSDA
//SYSOUT   DD SYSOUT=*
//SYSIN    DD *
   OPTION COPY   
   OUTFIL FNAMES=OUT2,CONVERT,
   OUTREC=(5,80)
/*


Code:

//STEP020  EXEC PGM=SORT
//SORTIN   DD DSN=SHEKAR.TEST.OUTPUT,DISP=SHR
//OUT2     DD DSN=SHEKAR.TEST.OUT2,DISP=(NEW,CATLG,DELETE),
//            SPACE=(TRK,(1,1),RLSE),UNIT=SYSDA
//SYSOUT   DD SYSOUT=*
//SYSIN    DD *
   OPTION COPY   
   OUTFIL FNAMES=OUT2,VTOF,
   OUTREC=(5,80)
/*


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Tue Jun 20, 2006 3:26 pm    Post subject: Reply with quote

Thanks Kolusu,

It has worked fine for me and i have understood what exactly is the problem.
_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group