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: 8686
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 Question about dataset sequence numbe... harisukumaran JCL & VSAM 23 Tue May 29, 2018 9:31 am
No new posts MXG - Processing Compressed DB2 SMF r... vasanthz All Other Mainframe Topics 2 Thu May 10, 2018 12:47 am
No new posts Temp dataset unusual behavior sheersh JCL & VSAM 5 Tue May 08, 2018 9:52 pm
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Merge 2 records sancraig16 SYNCSORT 19 Tue Mar 27, 2018 8:17 pm

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