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

VBA to FB conversion


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
itzphaniz

New User


Joined: 02 Sep 2005
Posts: 39

PostPosted: Fri Feb 15, 2008 2:26 pm
Reply with quote

My Input file is

Code:
       VOLSER------------PQP202     DEVTYPE------X'3010200F'

This is VBA file with LRECL = 125

My output file should be a FB with LRECL 80.

Code:
       VOLSER------------PQP202


I'm trying to use this the below JCL.

Code:
//STEPSR   EXEC PGM=SYNCSORT                       
//SORTIN    DD DSN=Input File,DISP=SHR   
//SORTOUT   DD DSN=OUTPUT File,         
//            DISP=(NEW,CATLG,DELETE),             
//            DCB=(LRECL=80,RECFM=FB,BLKSIZE=8000),
//            SPACE=(TRK,(10,10),RLSE),           
//            UNIT=SYSDA                           
//SORTLIB   DD DSN=SYS1.SORTLIB,DISP=SHR           
//SYSOUT    DD  SYSOUT=*                           
//SYSUDUMP  DD  SYSOUT=*                           
//SORTWK01  DD  UNIT=SYSDA,SPACE=(CYL,(5,5))       
//SORTWK02  DD  UNIT=SYSDA,SPACE=(CYL,(5,5))       
//SORTWK03  DD  UNIT=SYSDA,SPACE=(CYL,(5,5))       
//SORTWK04  DD  UNIT=SYSDA,SPACE=(CYL,(5,5))       
//SYSIN     DD  *                                 
 SORT FIELDS=COPY                                 
 OUTREC FIELDS=(1:1,4,12:5,24,45C' ')             
/*


These are the WER messages that I'm getting.

Code:
WER108I  SORTIN   : RECFM=VBA  ; LRECL=   125; BLKSIZE= 27998
WER237I  OUTREC RECORD LENGTH =    80                         
WER202A  SORTOUT  RECFM INCOMPATIBLE                         
WER110I  SORTOUT  : RECFM=FB   ; LRECL=      ; BLKSIZE=       
WER462I  OUTPUT LRECL DIFFERS FROM SORTOUT LRECL             
WER247A  SORTOUT  HAS INCOMPATIBLE LRECL                     


SORTOUT length is 80, so is OUTREC record length? Then why is OUTREC LRECL different from SORTOUT LRECL.
Any help would be deeply appreciated.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Feb 15, 2008 2:33 pm
Reply with quote

There's a similar topic here.
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Sat Feb 16, 2008 3:14 am
Reply with quote

Try this:
Code:

//STEP1  EXEC PGM=SORT                                 
//SYSOUT DD SYSOUT=*                                   
//SORTIN DD  DISP=SHR,DSN=INPUT.FILE
//SORTOUT DD DSN=OUTPUT.FILE,DISP=(NEW,CATLG),
//           UNIT=SYSDA, SPACE=(CYL,1),DCB=(RECFM=FB)               
//SYSIN DD  *                                           
 SORT FIELDS=COPY                                       
 OUTREC FIELDS=(5,24,56X),CONVERT                       
/*       
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts 10 byte RBA conversion DB2 2
No new posts 10 byte RBA conversion -non applicati... JCL & VSAM 1
No new posts file manager is doing string conversion IBM Tools 3
No new posts SMF Record Date conversion failing CLIST & REXX 1
No new posts Assembler class assignment: stuck on ... PL/I & Assembler 12
Search our Forums:

Back to Top