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
 

 

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 Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


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