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

converting 2 input files (1 VB and 1 FB) into 1 FB output.


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

New User


Joined: 11 Jan 2007
Posts: 6
Location: chennai

PostPosted: Mon Jan 21, 2008 12:33 pm
Reply with quote

Hi,

I have the following sort card in my JCl.
INCLUDE COND=(1,4,CH,EQ,C' 6G')
SORT FIELDS=COPY
OUTREC FIELDS=(1,4,CHANGE=(4,C' 6G',C'SP6G'),NOMATCH=(1,4),
5,496)
Where 2 sortin files are concatenated and used as input. Currently both files are FB files. Now i change one of the input file as VB but i need to create the same output FB file. The utility used is SYNCSORT.
Any help would be appreciated.

Thanks
Gnana.
Back to top
View user's profile Send private message
murmohk1

Senior Member


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

PostPosted: Mon Jan 21, 2008 12:35 pm
Reply with quote

Gnana,

Quote:
INCLUDE COND=(1,4,CH,EQ,C' 6G')

This condition will never get satisified for VB file.

Use two passes. In first pass, convert VB to FB and then concatenate in second pass.
Back to top
View user's profile Send private message
mkk157

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Mon Jan 21, 2008 1:26 pm
Reply with quote

Hi gnanasekar,

One of the options is to convert the VB file into FB file in the first step of ur JCL and then to continue with the sort card that u have in the second step.

The folllowing SORT card will be helpful to convert the VB file into FB file

//STEP010 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=(Input file name -VB) ,DISP=SHR
//SORTOUT1 DD DSN=(Output File Name - FB),DISP=OLD
//SYSIN DD *
SORT FIELDS=COPY
OPTION VLSHRT
OUTFIL FNAMES=SORTOUT1,VTOF,BUILD=(5,80)
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 TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
Search our Forums:

Back to Top