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

to copy daya from one file to two diff files


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ashish_dahake
Warnings : 1

New User


Joined: 14 May 2005
Posts: 4

PostPosted: Sat May 14, 2005 1:51 pm
Reply with quote

hi all,
iam ashish, my query is like this
i have one file having 80 char and i want to copy first 40 char in first outputn file and remaining 40 means 41 onwards data in second output file
can u help me how to do this?
regards
ashish
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: Sat May 14, 2005 7:47 pm
Reply with quote

Here's a DFSORT job that will do what you want:

Code:

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=...  input file (FB/80)
//OUT1 DD DSN=...    output file w/1-40 (FB/40)
//OUT2 DD DSN=...    output file w/41-80 (FB/40)
//SYSIN    DD    *
  OPTION COPY
* Copy positions 1-40 to OUT1
  OUTFIL FNAMES=OUT1,OUTREC=(1,40)
* Copy positions 41-80 to OUT2
  OUTFIL FNAMES=OUT2,OUTREC=(41,40)
/*
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: Sun May 15, 2005 8:52 pm
Reply with quote

ch@ya,

I've deleted your post from this thread. Please start a new thread for your problem. Since you say you want a TSO solution, it would be best to start your new thread in the TSO Forum rather than in the VSAM/DFSORT Forum.

Frank - The Moderator
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Binary File format getting change whi... All Other Mainframe Topics 7
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
Search our Forums:

Back to Top