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

VB TO VB sort syntax pls...


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

New User


Joined: 24 May 2007
Posts: 10
Location: Los angeles, CA

PostPosted: Wed Jul 16, 2008 9:24 pm
Reply with quote

I want to copy a 273 bytes VB file to another VB file of 271 bytes.

SORT FIELDS=COPY
OUTFIL FNAMES=01,
OUTREC FIELDS=(5:5,269)

I am getting the SOC abend.

Pls help...

Bala
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Jul 16, 2008 9:32 pm
Reply with quote

I've seen S0C1, S0C4, S0C7, etc. but never an SOC. Please post ALL your error messages and indicate which sort product you use.
Back to top
View user's profile Send private message
gbalaa_007

New User


Joined: 24 May 2007
Posts: 10
Location: Los angeles, CA

PostPosted: Wed Jul 16, 2008 10:01 pm
Reply with quote

correction to my earlier post....

VB 275bytes to VB 273bytes....

Code:

  SORT FIELDS=COPY
  OUTFIL FNAMES=01,
  OUTREC FIELDS=(5:5,269)


error code USER COMPLETION CODE=0007

Code:

ICE000I 1 - CONTROL STATEMENTS FOR
            SORT FIELDS=COPY
            OUTFIL FNAMES=01,
                          $
ICE007A 0 SYNTAX ERROR
            OUTREC FIELDS=(5:5,269)
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: Wed Jul 16, 2008 10:38 pm
Reply with quote

Boy, that's a lot of mistakes for so few control statements.

The flagged error is FNAMES=01. You either need FNAMES=ddname or FILES=nn. FILES=01 would be valid and associated with a SORTOF01 DD. FNAMES=OUT1 would be valid and associated with an OUT1 DD. But FNAMES=01 is invalid.

OUTREC FIELDS=(5:5,269) should be OUTREC=(1,4,5:5,269) or BUILD=(1,4,5:5,269).

A correct version of your DFSORT job would be:

Code:

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=...  input file (VB/275)
//OUT1 DD DSN=...    output file (VB/273)
//SYSIN    DD    *
  SORT FIELDS=COPY
  OUTFIL FNAMES=OUT1,
    BUILD=(1,4,5:5,269)
/*


However, note that 5,269 will only work if every record is at least 273 bytes long. Is that the case?
Back to top
View user's profile Send private message
gbalaa_007

New User


Joined: 24 May 2007
Posts: 10
Location: Los angeles, CA

PostPosted: Thu Jul 17, 2008 8:11 pm
Reply with quote

Thanks a lot Frank Yaeger !!
it worked fine...
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 Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top