Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8620
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 Inefficient BUILD - VB records paddin... Daniel Prosser SYNCSORT 6 Thu Dec 14, 2017 3:52 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Compare and COPY using DFSORT pshongal DFSORT/ICETOOL 3 Fri Nov 17, 2017 9:49 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us