Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
converting 2 input files (1 VB and 1 FB) into 1 FB output.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: converting 2 input files (1 VB and 1 FB) into 1 FB output.
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: 1439
Location: Bangalore,India

PostPosted: Mon Jan 21, 2008 12:35 pm    Post subject:
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    Post subject: Reply to: converting 2 input files (1 VB and 1 FB) into 1 F
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Compare two PS files using ICE TOOL f... SENTHIL MURUGAAN DFSORT/ICETOOL 5 Sun Dec 24, 2017 1:26 pm
No new posts Preserve order in Input File pshongal DFSORT/ICETOOL 13 Thu Dec 21, 2017 4:20 pm
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Split files upto certain limit based ... bubbu75 DFSORT/ICETOOL 5 Tue Nov 14, 2017 11:11 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us