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

Copy some sample records from Tape dataset to DASD


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pavithraa

New User


Joined: 14 Nov 2006
Posts: 12

PostPosted: Thu Apr 09, 2009 10:35 am
Reply with quote

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
View user's profile Send private message
maheshvamsi

New User


Joined: 22 Mar 2008
Posts: 39
Location: bangalore

PostPosted: Thu Apr 09, 2009 10:56 am
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Apr 09, 2009 12:41 pm
Reply with quote

maheshvamsi wrote:
You need to provide Tape Serail number in SORTIN, VOL=SER=......
Why? Unless environment is non-SMS?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Apr 09, 2009 1:11 pm
Reply with quote

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
View user's profile Send private message
pavithraa

New User


Joined: 14 Nov 2006
Posts: 12

PostPosted: Thu Apr 09, 2009 2:07 pm
Reply with quote

Thanks Mahesh vamsi....
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts VB to VB copy - Full length reached SYNCSORT 8
Search our Forums:

Back to Top