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
 

 

i want jcl for this problem

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: i want jcl for this problem
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 Moderator


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

PostPosted: Fri Jun 03, 2005 8:15 pm    Post subject:
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    Post subject: Re: i want jcl for this problem
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 Moderator


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

PostPosted: Wed Jun 08, 2005 9:35 pm    Post subject:
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:

http://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    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 SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm
No new posts Problem with GETMAIN command amitc23 CICS 6 Thu Sep 01, 2016 1:01 pm


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