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

copy from VSAM file to flat fille


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
arunswap

New User


Joined: 23 Mar 2006
Posts: 13

PostPosted: Fri Apr 07, 2006 9:59 am
Reply with quote

how to copy vsam file to flat file
Back to top
View user's profile Send private message
Jayalakshmi

New User


Joined: 02 Sep 2005
Posts: 26
Location: Hyderabad

PostPosted: Fri Apr 07, 2006 11:27 am
Reply with quote

Hi Arun,

We can use IDCAMS command REPRO to accomplish the job u requested.

Eg:



Code:

//jobnm job (sampjcl),class=a,msgclass=x
//step01 exec pgm=idcams
//sysin dd *
   REPRO INFILE(DD1) OUTFILE(DD2)

//dd1 dd dsn=aaa.vsam.ksds,
//dd2 dd dsn=bbb.samf
//



Corrections welcome.

Regards,
Jaya.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Apr 07, 2006 2:50 pm
Reply with quote

You also have the option of processing VSAM input files as variable-length or fixed-length using DFSORT.

See the following for more information:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA10/1.8.3.4?SHELF=&DT=20050222160456&CASE=
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
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
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top