MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tape GDG

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
suma
Beginner


Joined: 23 Jan 2006
Posts: 65
Topics: 29

PostPosted: Fri May 05, 2006 4:15 am    Post subject: Tape GDG Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Fri May 05, 2006 4:23 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
suma
Beginner


Joined: 23 Jan 2006
Posts: 65
Topics: 29

PostPosted: Fri May 05, 2006 5:03 am    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Fri May 05, 2006 5:05 am    Post subject: Reply with quote

suma,

It should be SORT FIELDS=COPY. I corrected the post.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
suma
Beginner


Joined: 23 Jan 2006
Posts: 65
Topics: 29

PostPosted: Fri May 05, 2006 5:24 am    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Fri May 05, 2006 5:33 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
hariavinash
Beginner


Joined: 21 Jan 2005
Posts: 52
Topics: 7

PostPosted: Fri May 05, 2006 5:34 am    Post subject: Reply with quote

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
View user's profile Send private message
raam_narayan
Beginner


Joined: 28 Apr 2006
Posts: 12
Topics: 2

PostPosted: Fri May 05, 2006 5:40 am    Post subject: Reply with quote

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
View user's profile Send private message
suma
Beginner


Joined: 23 Jan 2006
Posts: 65
Topics: 29

PostPosted: Fri May 05, 2006 5:45 am    Post subject: Reply with quote

Kolusu,hariavinash


Thank you very it worked.
Very Happy

regds.
Suma
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group