Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Copy some sample records from Tape dataset to DASD

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Copy some sample records from Tape dataset to DASD
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    Post subject:
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

Senior Member


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

PostPosted: Thu Apr 09, 2009 12:41 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 09, 2009 1:11 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 5 Thu Apr 27, 2017 1:15 am
No new posts Length of Tape file Mohan Kothakota JCL & VSAM 9 Thu Apr 20, 2017 10:24 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us