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 ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
This topic is locked: you cannot edit posts or make replies. Incrementing current time field by 30... arunsoods DFSORT/ICETOOL 11 Thu Oct 26, 2017 3:22 pm
No new posts Copying part of the report using SARBCH Aedulla CA Products 1 Tue Oct 24, 2017 9:24 am
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm

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