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
 
Position of Records in Outfile Using Syncsort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Evantra

New User


Joined: 05 Jan 2008
Posts: 15
Location: Sacramento, Ca

PostPosted: Thu Aug 28, 2008 11:10 pm    Post subject: Position of Records in Outfile Using Syncsort
Reply with quote

I have a quick question. My output data starts in column 2 and I need it in column 4.



//SORT1 EXEC PGM=SORT
//SORTJNF1 DD DSN=OPSA90.ORSCO.CLIENTSP.DATA(0),DISP=SHR
//SORTJNF2 DD DSN=OPSA90.ORSCO.CLIENTSP.WRKFILE,DISP=SHR
//SORTOF01 DD DSN=OPSA90.ORSCO.CLIENTSP.NOTSENT(+1),
// DISP=(,CATLG),
// UNIT=SYSDA,
// SPACE=(CYL,(90,60),RLSE),
// RECFM=FB,BLKSIZE=27951,LRECL=121
//SYSOUT DD SYSOUT=*
//SYSIN DD *
JOINKEYS FILES=F1,FIELDS=(1,15,A)
JOINKEYS FILES=F2,FIELDS=(1,15,A)
JOIN UNPAIRED,F2,ONLY
SORT FIELDS=COPY
OUTFIL FILES=01,OUTREC=(1,121),REMOVECC,
HEADER1=(' SCO CLIENT ACCOMPANY TAPES - PRIMARYS',45:&DATE),
TRAILER1=(' TOTAL TAPE COUNT: ',COUNT=(M11,LENGTH=4))
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Fri Aug 29, 2008 12:27 am    Post subject:
Reply with quote

Alter the OUTREC by inserting two blanks before the actual data?
Back to top
View user's profile Send private message
Evantra

New User


Joined: 05 Jan 2008
Posts: 15
Location: Sacramento, Ca

PostPosted: Fri Aug 29, 2008 12:32 am    Post subject:
Reply with quote

I'm sorry CICS Guy, I'm not following. Would you mind showing the syntax?
Thanks
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Fri Aug 29, 2008 12:59 am    Post subject:
Reply with quote

OUTREC=(1:2X,1,121) but your lrecl is now 123.
OUTREC=(1:2X,1,119) your lrecl is now 121 but you lost the last two bytes.
Back to top
View user's profile Send private message
Evantra

New User


Joined: 05 Jan 2008
Posts: 15
Location: Sacramento, Ca

PostPosted: Fri Aug 29, 2008 1:08 am    Post subject:
Reply with quote

That worked great. Thanks CICS Guy! I think this is the second or third time you have helped me out...
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 how to add the amount for duplicate r... SRUTHI DRAVIDAMANI COBOL Programming 6 Wed Feb 21, 2018 7:21 pm
No new posts Merging records, but not all the time prino DFSORT/ICETOOL 15 Sat Feb 17, 2018 4:20 pm
No new posts Need all records with high key kalidasvs SYNCSORT 14 Fri Feb 09, 2018 10:38 pm
No new posts Why is SORT rearranging records that ... cschablow DFSORT/ICETOOL 4 Wed Jan 24, 2018 10:14 pm
No new posts Skip records depends on count lakshmiibmmainframes DFSORT/ICETOOL 5 Sun Dec 24, 2017 9:51 pm

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