Page 1 of 1

jcl for convert tape file to disk file

PostPosted: Wed Nov 05, 2008 1:09 am
by lxw039
hi, anybody have jcl for convert tape file to disk file, I want to check my input file stored in tape, thank you very much!

Re: jcl for convert tape file to disk file

PostPosted: Wed Nov 05, 2008 1:44 am
by santlou
Use IEBGENER.

Re: jcl for convert tape file to disk file

PostPosted: Wed Nov 05, 2008 2:37 am
by dick scherrer
Hello,

anybody have jcl for convert tape file to disk file
You don't convert from tape to disk (unless i misunderstand what you need), you copy.

As suggested, you might use IEBGENER.

Re: jcl for convert tape file to disk file

PostPosted: Wed Nov 05, 2008 3:06 am
by lxw039
hi, my means is I want check my input file stored in tape, I have a jcl for convert tape file to disk file,
but when I run, it always has a abend code SB37 error. I don't the meaning of this code SB37, thanks.

Re: jcl for convert tape file to disk file

PostPosted: Wed Nov 05, 2008 3:12 am
by dick scherrer
Hello,

The b37 says you have run out of space.

How many records are on this tape? What do you want to "check"? How did you calculate the space parameter you used in your jcl for the disk file?

Re: jcl for convert tape file to disk file

PostPosted: Fri Nov 07, 2008 2:10 am
by lxw039
thank you very much!

Re: jcl for convert tape file to disk file

PostPosted: Fri Sep 01, 2017 9:41 pm
by GeorgeQ
Let me use one of my codes you maybe want the most to answer the question.




//TAPE2DA JOB (K,601-6916,601-6916),GEO,CLASS=1,NOTIFY=&SYSUID
/*ROUTE PRINT FETCH
/*JOBPARM ROOM=DOR,L=9999
//COPY1 EXEC PGM=IEBGENER
//SYSUT1 DD DSN=A00000.H00000.ONTAPE,DISP=SHR
//SYSUT2 DD DSN=A000000.X000000.ONDISC,
// DISP=(MOD,CATLG,DELETE),UNIT=(SYSDA,3),
//* SPACE=(CYL,(50,20),RLSE)
// SPACE=(CYL,(6000,600),RLSE)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *


if it helps please like. your like is important to me.

Thanks

Re: jcl for convert tape file to disk file

PostPosted: Fri Sep 01, 2017 9:50 pm
by Robert Sample
GeorgeQ, did you really think that you are adding much to a topic that was last posted to almost NINE years ago?

And have you actually tried your JCL? I did and got
IEF344I RLSTEST STEP01 SYSUT2 - ALLOCATION FAILED DUE TO DATA FACILITY SYSTEM ERROR
IGD17273I ALLOCATION HAS FAILED FOR ALL VOLUMES SELECTED FOR DATA SET              
RLS.TEST.JCL                                                                      
IGD17277I THERE ARE (49) CANDIDATE VOLUMES OF WHICH (24) ARE ENABLED OR QUIESCED  
IGD17290I THERE WERE 1 CANDIDATE STORAGE GROUPS OF WHICH THE FIRST 1              
WERE ELIGIBLE FOR VOLUME SELECTION.                                                
THE CANDIDATE STORAGE GROUPS WERE:TESTING                                          
IGD17279I 25 VOLUMES WERE REJECTED BECAUSE THE SMS VOLUME STATUS WAS DISABLED      
IGD17279I 4 VOLUMES WERE REJECTED BECAUSE THEY WERE NOT ONLINE                    
IGD17279I 4 VOLUMES WERE REJECTED BECAUSE THE UCB WAS NOT AVAILABLE                
IGD17279I 24 VOLUMES WERE REJECTED BECAUSE OF A DADSM FAILURE (044E0097)          
The 044E0097 DADSM failure indicates that an attempt was made to allocate more than 65535 tracks on a single volume, which was not allowed. If your JCL included DSNTYPE=LARGE, that would have prevented the DADSM error -- but as you presented the JCL a DADSM error is guaranteed (unless your site has an SMS pool with default DSNTYPE=LARGE which your JCL used). Furthermore, if the tape file has a couple of billion records on it, each 200 bytes long, your space allocation will fail. Before answering the originally posted question, the record length and record count are required to be known as otherwise any provided SPACE parameter may be inadequate.

Please try to post to reasonably current topics (hint: anything more than a year or so old is probably out of date for posting), and above all else, do not post erroneous JCL!