Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Looking for a best way to covert from FB to VB

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
manuwankenobi

New User


Joined: 02 Mar 2006
Posts: 32
Location: FRANCE

PostPosted: Tue Nov 15, 2011 2:26 pm    Post subject: Looking for a best way to covert from FB to VB
Reply with quote

Hello,

I have to covert a file from FB to VB.
Input file record is 10074, the first 174 bytes must always be in the ouptput file, bytes from position 175 to the end must have trailing blanks removed.
Bytes 167 to 174 can be blanks and must remain blanks in output file.

I found a way which is working :
Code:

//ALTSIRP3  EXEC PGM=SORT                                         
//SYSPRINT DD SYSOUT=*                                             
//SYSOUT   DD SYSOUT=*                                             
//SORTOUT  DD DISP=(NEW,CATLG,DELETE),                             
//         DSNAME=UINFOA.IRP4070.IRP0200.OUTFILE.TRANSN,           
//         SPACE=(CYL,(1,1),RLSE)                                                     
//SORTIN   DD DISP=SHR,DSN=UINFOA.IRP4070.IRP0200.OUTFILEN         
//         DD DISP=SHR,DSN=UINFOA.IRP4075.UNLOAD.CARI.DATA.TRIN   
/*                                                                 
//SYSIN    DD *                                                   
 OPTION COPY                                                       
 INREC  IFTHEN=(WHEN=(167,8,CH,EQ,C'        '),                   
                OVERLAY=(167:C'55555555'))                         
 ALTSEQ CODE=(7BB1,7C44,4A90,E048,5AB5,79A0,C051,D054,A1BD,B17B,   
              6ADD,B55A,BDA1,904A,A079,447C,48E0,54D0,51C0,DD6A)   
 OUTREC FIELDS=(1,10074,TRAN=ALTSEQ)                               
 OUTFIL FTOV,VLTRIM=X'40'                                         
//*                                                               
//ALTSIRP4  EXEC PGM=SORT                                         
//SYSPRINT DD SYSOUT=*                                             
//SYSOUT   DD SYSOUT=*                                             
//SORTOUT  DD DISP=(NEW,CATLG,DELETE),                             
//         DSNAME=UINFOA.IRP4070.IRP0200.OUTFILE.TRANSN2,                         
//SORTIN   DD DISP=SHR,DSN=UINFOA.IRP4070.IRP0200.OUTFILE.TRANSN     
/*                                                                   
//SYSIN    DD *                                                       
 OPTION COPY                                                         
 INREC IFTHEN=(WHEN=(171,8,CH,EQ,C'55555555'),                       
            OVERLAY=(171:C'        '))   


I would like to do the same job in one step instead of two.

Do you think that it is possible ?

Thank a lot.
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7306

PostPosted: Tue Nov 15, 2011 2:40 pm    Post subject: Reply to: Looking for a best way to covert from FB to VB
Reply with quote

You can have multiple IFTHEN in the same step.
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 Covert File from VB to FBA Deepak Dash JCL & VSAM 3 Fri Dec 09, 2011 3:42 pm
No new posts How covert VB to FB while using PARSE... rguhanath DFSORT/ICETOOL 2 Sat May 17, 2008 4:57 pm
No new posts Covert of comp-3 value into equivalen... Frank Yaeger DFSORT/ICETOOL 9 Thu Apr 03, 2008 10:24 am
No new posts To covert a Hexadecimal field to a di... Phoenix JCL & VSAM 13 Fri Feb 01, 2008 1:16 pm
No new posts CSV semicolon covert to CSV comma file. Frank Yaeger DFSORT/ICETOOL 3 Wed Oct 24, 2007 3:43 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us