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

How to convert variable length file to fixed length file


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

New User


Joined: 15 Sep 2005
Posts: 42

PostPosted: Wed Oct 24, 2007 3:27 pm
Reply with quote

Hi,


I want to convert VB file to FB file.

I used the following code.

Code:

//STEP1 EXEC  PGM=SORT                                           
//SYSOUT   DD   SYSOUT=*                                         
//SORTIN   DD   DSN=SAS12D.G4662V00.TEST,DISP=SHR
//SORTOUT  DD DSN=GGJ67D.TEST4,                           
//            DISP=(NEW,CATLG,DELETE),                           
//            SPACE=(TRK,(10,10),RLSE),                         
//            RECFM=FB,LRECL=10,DSORG=PS                         
//SYSIN    DD *                                                 
  OPTION VLSHRT                                                 
  SORT FIELDS=COPY                                               
  INCLUDE COND=(89,1,CH,EQ,C'Y',AND,5,3,ZD,EQ,120)               
  OUTREC FIELDS=(8,2,PD,EDIT=(TTTTTTTTTT))               


Its getting abend.

Can anyone help me out.

Thanks,
Sridevi
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Wed Oct 24, 2007 3:29 pm
Reply with quote

Sridevi,

Spool messges please.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Oct 24, 2007 3:30 pm
Reply with quote

Sridevi,


This has been discussed many times. Search in DFSORT forum for the keyword VTOF.


Post if you still face any issue.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Wed Oct 24, 2007 3:32 pm
Reply with quote

Sridevi,

I see you had posted earlier on the same issue. Why dont you go thru the below link -


ibmmainframes.com/viewtopic.php?t=25393
Back to top
View user's profile Send private message
jmreddymca
Warnings : 1

New User


Joined: 14 Oct 2007
Posts: 29
Location: Bangalore

PostPosted: Wed Oct 24, 2007 3:36 pm
Reply with quote

hi sreedevi

check with this it may help you

Code:

//STEP02   EXEC PGM=SORT                       
//SYSOUT   DD SYSOUT=*                         
//SORTIN   DD DSN=vbf,       
//            DISP=SHR                         
//SORTOUT  DD DSN=fixf,       
//            DISP=(NEW,CATLG,DELETE),         
//            SPACE=(TRK,(10,10),RLSE)   
//SYSIN DD *                                       
  SORT FIELDS=COPY                                 
  OUTREC FIELDS= (1:5,150),VTOF                     
/*                                                 
//*
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 Oct 24, 2007 9:33 pm
Reply with quote

For more information on DFSORT's VTOF function, see the "VB to FB conversion" Smart DFSORT Trick at:

www.ibm.com/servers/storage/support/software/sort/mvs/tricks/
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Store the data for fixed length COBOL Programming 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top