View previous topic :: View next topic |
Author |
Message |
suma Beginner
Joined: 23 Jan 2006 Posts: 65 Topics: 29
|
Posted: Fri May 05, 2006 4:15 am Post subject: Tape GDG |
|
|
Hi all,
I have GDG whose volume is like 832323+
KB.PROD ??????
KB.PROD.G0324V00 832323+
when I tried to view this I am getting a message as Tape not supported on ISPF panel.
But I want to see (or copy into any other dataset) the values in this perticular GDG.How to do this?
please can anyone let me how to handle this type of GDGs.
Thanks
suma |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Fri May 05, 2006 4:23 am Post subject: |
|
|
suma,
Suma,
You can NOT browse a GDG Base OR a gdg version which is on a tape. Based on your message I am guessing that you are trying to browse the GDG Base. You need to browse the GDG version. ie. KB.PROD.G0324V00 provided that it is on DASD. If it is a Tape file then you can use any utlitiy(IEBGENR,Sort, File-aid...) to copy the tape dsn to a dsad dsn.
try browsing KB.PROD.G0324V00. If it gives you an error that tape is not supported then run this step
Code: |
//STEP0100 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=KB.PROD.G0324V00,
// DISP=SHR
//SORTOUT DD DSN=YOUR OUTPUT FILE,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(CYL,(10,10),RLSE)
//SYSIN DD *
SORT FIELDS=COPY
/*
|
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu
Last edited by kolusu on Fri May 05, 2006 5:04 am; edited 1 time in total |
|
Back to top |
|
|
suma Beginner
Joined: 23 Jan 2006 Posts: 65 Topics: 29
|
Posted: Fri May 05, 2006 5:03 am Post subject: |
|
|
I am getting below error, please let me know why is this.
SYSIN :
SORT FIELD COPY
*
WER268A SORT STATEMENT : SYNTAX ERROR
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
Thanks |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Fri May 05, 2006 5:05 am Post subject: |
|
|
suma,
It should be SORT FIELDS=COPY. I corrected the post.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
suma Beginner
Joined: 23 Jan 2006 Posts: 65 Topics: 29
|
Posted: Fri May 05, 2006 5:24 am Post subject: |
|
|
Thanks for your quick reply.
I am getting SB37 abend,in order avoid this can I restrict the number of records which are to be copied to the output file.
regds.
suma |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Fri May 05, 2006 5:33 am Post subject: |
|
|
suma,
You can use the option STOPAFT to limit the number of recs to be copied. Try these control cards. stopaft=100 will copy the first 100 records to your output dataset.
Code: |
//SYSIN DD *
OPTION STOPAFT=100
SORT FIELDS=COPY
/*
|
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
hariavinash Beginner
Joined: 21 Jan 2005 Posts: 52 Topics: 7
|
Posted: Fri May 05, 2006 5:34 am Post subject: |
|
|
Suma,
you can limit the number records extracted in copy function using STOPAFT.
STOPAFT=5000 will stop processing after copying 5000 records in this context.
cheers |
|
Back to top |
|
|
raam_narayan Beginner
Joined: 28 Apr 2006 Posts: 12 Topics: 2
|
Posted: Fri May 05, 2006 5:40 am Post subject: |
|
|
Hi Suma,
What KOLUSU said perfectly right, i.e. U gotta browse or edit the GDG version and not the base.. what u can do is if any of the GDG versions is in the Tape u can use a command called as HRECOVER or HRECALL and can take or copy the data from that version to ur DASD and do the manipulation...
procedure how to use this command :-
1. go to 3.4 and type the tape dataset name
2. in the DSLIST i.e. on the member listing type any of the command as above mentioned and hit Enter
3. the data would be moved from the tape to the DASD
Pls revert in case of any issue...
Thanks & Regards,
V.Ram NArayan
PATNI COMPUTERS SYSTEMS |
|
Back to top |
|
|
suma Beginner
Joined: 23 Jan 2006 Posts: 65 Topics: 29
|
Posted: Fri May 05, 2006 5:45 am Post subject: |
|
|
Kolusu,hariavinash
Thank you very it worked.
regds.
Suma |
|
Back to top |
|
|
|
|