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

i want jcl for this problem


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

New User


Joined: 22 Mar 2005
Posts: 51
Location: chennai

PostPosted: Fri Jun 03, 2005 6:21 pm
Reply with quote

hi guys,

i have three files. first file contain 20 fields ,second file contain 20 fileds and thrid file is empty. now i want for first file first 10 fileds data and second file last 10 fileds data will be copied in to third file. now the third file contain first file 10fileds of data and second file last 10 fileds data.How u can write the jcl for this



byee..
naveen.s
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Fri Jun 03, 2005 8:15 pm
Reply with quote

Please show an example of the records in each of the two input files and what you expect the output file to look like. Please give the starting position and length for the relevent fields. Please indicate the RECFM and LRECL of each input file.
Back to top
View user's profile Send private message
naveensri2005
Currently Banned

New User


Joined: 22 Mar 2005
Posts: 51
Location: chennai

PostPosted: Wed Jun 08, 2005 5:29 pm
Reply with quote

HI,

first file contain (empno,ename,sal,deg,jdate,comm,address,telno,emaiid,renumber).
second file contain(deptname,salinfo,da,hra,pf,benifits,comments,location,city,country)
there are fields in a two files. Now i want the fallowing structure
when ever i am open the third file the information can displayed as fallows

(empno,ename,sal,deg,jdate,benifits,comments,location,city,country)
the three files are vsam ksds files.
how u can write the jcl for this ?

and another question is
is it possible for concatenate the vsam data set? how ? plz give me one example.


regards
naveen
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Jun 08, 2005 9:35 pm
Reply with quote

You can use the SPLICE operator of DFSORT's ICETOOL to do this kind of join operation. Since you didn't give the position and length of the fields, as requested, I can't show you how to write the JCL. But here's a Smart DFSORT Trick that shows the technique:

www.ibm.com/servers/storage/support/software/sort/mvs/tricks/srtmst03.html#t01

The "system" does not allow VSAM data sets to be concatenated.
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 Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Job scheduling problem. JCL & VSAM 9
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
No new posts Need to add field to copybook, proble... COBOL Programming 14
Search our Forums:

Back to Top