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
 
JCL to move the values of one file to another file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
krishnasaikiah

New User


Joined: 14 Mar 2007
Posts: 24
Location: gurgaon

PostPosted: Tue May 13, 2008 2:32 pm    Post subject: JCL to move the values of one file to another file
Reply with quote

HI all,

I have a input file like this

01. INRECX1.
05. EMP NAME PIC X(10).
05. EMP ID PIC X(5).
05. EMP SAL PIC X(8).

The other input file has these three fields in addition to other 10 fields.

I need to move the values of these 3 fields from the first input file to the second file.The values of the other fields in the 2nd input file will remain the same.

Thus, I need to have one output file after moving the values of these three fields into the second input file.

I want to know whether this can be done thru JCL.

Because I dont want to write a program for just moving in the values.

Thanks
Krishna
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6970
Location: porcelain throne

PostPosted: Tue May 13, 2008 2:42 pm    Post subject:
Reply with quote

is there no matching of records? what are your 'rules' for merging the two files. You have provided 3 fields for 1 input file. what does the other input file look like?

what kind of matching logic do you want?

also, record lengths, field lengths and offsets.
Back to top
View user's profile Send private message
satheeshkamal

New User


Joined: 09 Jan 2007
Posts: 26
Location: Chennai

PostPosted: Tue May 13, 2008 2:49 pm    Post subject:
Reply with quote

See the "Join fields from two files record-by-record" Smart DFSORT Trick at:

http://www.ibm.com/servers/storage/support/software/sort/mvs/tricks/
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 ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am

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