JCL to copy from DASD to TAPE

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
karthikeyancbe
Member
Posts: 4
Joined: Mon Jan 11, 2010 6:13 pm
Location: Chennai

JCL to copy from DASD to TAPE

Post by karthikeyancbe » Mon Jan 25, 2010 10:30 am

Hi,
I need a JCL to copy records from dasd to tape.
Thanks in advance,
Karthikeyan.

User avatar
Frank Yaeger
Moderator
Posts: 812
Joined: Sat Feb 18, 2006 5:45 am
Location: San Jose, CA
Contact:

Post by Frank Yaeger » Mon Jan 25, 2010 10:38 pm

Well, based on your brief description, you could use a DFSORT job like the following:

Code: Select all

//S1    EXEC  PGM=SORT                                            
//SYSOUT    DD  SYSOUT=*                                          
//SORTIN DD DSN=...    DASD input file      
//SORTOUT DD DSN=...   tape output file   
//SYSIN    DD    *                                                
  OPTION COPY                                   
/*                  
If you need more specific help, give more details.
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others