Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Copying particular field onlyusing SYNTCORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Copying particular field onlyusing SYNTCORT
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: Reply to: Copying particular field onlyusing SYNTCORT
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    Post subject:
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

Site Director


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

PostPosted: Thu Jan 31, 2008 10:14 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts JES2 job size field matching Windows ... SRICOBSAS All Other Mainframe Topics 4 Tue Sep 05, 2017 5:49 pm
No new posts Copying a ps to member of a existing PDS Deepika Chikyala JCL & VSAM 10 Tue Sep 05, 2017 11:44 am
No new posts String after '.' (period) is not copy... balaji81_k SYNCSORT 6 Wed Aug 23, 2017 9:35 pm
No new posts copying data without knowing location Arun Raj DFSORT/ICETOOL 12 Thu Jul 20, 2017 1:03 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us