View previous topic :: View next topic
|
Author |
Message |
pavithraa
New User
Joined: 14 Nov 2006 Posts: 12
|
|
|
|
Could anyone please let me know the JCL for copying Tape dataset to DASD with some records for testing.(say any 50 records) |
|
Back to top |
|
|
maheshvamsi
New User
Joined: 22 Mar 2008 Posts: 39 Location: bangalore
|
|
|
|
Try using this JCL.
Code: |
//JOB0 JOB class=A
//*
//STEP EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SORTIN DD DSN=TAPE.FILE.1,
// DISP=SHR,VOL=SER=450598,UNIT=TAPECART
//SORTOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY,STOPAFT=50
//* |
You need to provide Tape Serail number in SORTIN, VOL=SER=......
In this job I am sending output to SPool.
Edited: Please use BBcode when You post some code/error, that's rather readable, Thanks... Anuj |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
maheshvamsi wrote: |
You need to provide Tape Serail number in SORTIN, VOL=SER=...... |
Why? Unless environment is non-SMS? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Anuj D. wrote: |
maheshvamsi wrote: |
You need to provide Tape Serail number in SORTIN, VOL=SER=...... |
Why? Unless environment is non-SMS? |
Or the tape comes from an external source and is not cataloged |
|
Back to top |
|
|
pavithraa
New User
Joined: 14 Nov 2006 Posts: 12
|
|
|
|
Thanks Mahesh vamsi.... |
|
Back to top |
|
|
|