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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 3 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am


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