IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Copying VSAM File to PS File


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
meenakshi_forum
Warnings : 1

Active User


Joined: 27 May 2008
Posts: 121
Location: India

PostPosted: Sat Jun 21, 2008 1:32 am
Reply with quote

Please let me know how to copy a VSAM file to PS File(this will be a new file).
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sat Jun 21, 2008 1:48 am
Reply with quote

This is a similar topic.
Back to top
View user's profile Send private message
meenakshi_forum
Warnings : 1

Active User


Joined: 27 May 2008
Posts: 121
Location: India

PostPosted: Sat Jun 21, 2008 1:53 am
Reply with quote

Please let me know where i'll get some idea for it,

i am getting an abend.

I am using

Sort fields=copy

Include cond=(.....)
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Sat Jun 21, 2008 2:25 am
Reply with quote

meenakshi_forum wrote:
i am getting an abend.


Could you provide any less detail then you have?
What abend, show us the job listings etc!
Back to top
View user's profile Send private message
meenakshi_forum
Warnings : 1

Active User


Joined: 27 May 2008
Posts: 121
Location: India

PostPosted: Sat Jun 21, 2008 2:41 am
Reply with quote

ICE005A 0 STATEMENT DEFINER ERROR
ICE010A 0 NO SORT OR MERGE CONTROL STATEMENT
ICE751I 0 C5-K26318 C6-K90007 E7-K24705
ICE052I 3 END OF DFSORT




******************************************
In my control card sort is like this--

SORT FIELDS=COPY
INCLUDE COND=(25,2,CH,EQ,C'01',OR,25,2,CH,EQ,C'15')
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Jun 21, 2008 3:23 am
Reply with quote

Hello,

Using the "Code" bbtag, post your jcl and control statements (this will make your post more readable).

Make sure your control statements do not begin in col1.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Sat Jun 21, 2008 4:39 am
Reply with quote

Meenakshi,

You are getting those errors because your control statements start in column 1. You must have at least one blank before SORT and at least one blank before INCLUDE.

Code:

  SORT FIELDS=COPY
  INCLUDE COND=(25,2,CH,EQ,C'01',OR,25,2,CH,EQ,C'15')


If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

Use [URL] BBCode for External Links
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 6
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top