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

Copying particular field onlyusing SYNTCORT


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vishal.iitr2003
Currently Banned

New User


Joined: 25 Jan 2008
Posts: 18
Location: India

PostPosted: Thu Jan 31, 2008 2:04 pm
Reply with quote

I am using SORT to copy records from 1 ps file to another. I want to copy only the name field.
How can I do this.
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Thu Jan 31, 2008 2:06 pm
Reply with quote

and where in the input file is that 'name field'?
Back to top
View user's profile Send private message
vishal.iitr2003
Currently Banned

New User


Joined: 25 Jan 2008
Posts: 18
Location: India

PostPosted: Thu Jan 31, 2008 2:28 pm
Reply with quote

name field is at postion 139 nad its length is 30
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Thu Jan 31, 2008 2:50 pm
Reply with quote

use this SORT card
Code:

//SYSIN    DD *
 SORT FIELDS=COPY
 OUTREC FIELDS=(139,30)
 
Back to top
View user's profile Send private message
vishal.iitr2003
Currently Banned

New User


Joined: 25 Jan 2008
Posts: 18
Location: India

PostPosted: Thu Jan 31, 2008 3:01 pm
Reply with quote

I did the same. Its giveng an U016 abbend.
And the message is:-
OUTREC RDW NOT INCLUDED
what dos this mean.
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Thu Jan 31, 2008 3:04 pm
Reply with quote

that the input file is variable, search in the forum.
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: Thu Jan 31, 2008 10:14 pm
Reply with quote

Hello,

To receive more usable replies, you need to post your jcl and control statements, the desired output, and any diagnostic info presented by the execution.

It sounds like you want to write 30-byte fixed-length records, but have specified variable length. . .
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Fri Feb 01, 2008 8:48 am
Reply with quote

vishal
As dick is pointing you need to provide some more info...
icon_arrow.gif you need to specify the attributes(FB/VB, LRECL) of i/p and o/p files.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts S0C7 - Field getting overlayed COBOL Programming 2
No new posts Masking variable size field - min 10 ... DFSORT/ICETOOL 4
Search our Forums:

Back to Top