×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

FILEAID TO SYNCSORT CONVERSION

FILEAID TO SYNCSORT CONVERSION

FILEAID TO SYNCSORT CONVERSION

(OP)
Hi all,

I have fileaid step which i want to convert to syncsort step (pgm=sort)

input/output file are in VB format
UNIT=(DASTG,4),SPACE=(27998,(12000,1500),RLSE),
DCB=(RECFM=VB,LRECL=550,BLKSIZE=27998)

The sort card for fileaid is
$$DD01 COPY RDW=2,IF=(2,EQ,C'NOUSER5'),
ORIF=(2,EQ,C'TVASQU2 '),
ORIF=(2,EQ,C'ZZZZZZZ')

The sort card which I framed for pgm=sort is
OPTION COPY VTOF,
INCLUDE COND=((2,7,CH,EQ,C'NOUSER5'),
|,(2,8,CH,EQ,C'TVASQU2 '),
|,(2,7,CH,EQ,C'ZZZZZZZ'))
OUTFIL FNAMES=DD01O
error : The outfile for the fileaid step is non empty where as pgm=sort have empty output file

Please help me figure out the error.
Thanks for you help

RE: FILEAID TO SYNCSORT CONVERSION

Adbhut

I have a suggestion...

Try using the following as a COND...

INCLUDE COND=(6,7,CH,EQ,C'NOUSER5',OR,6,8,CH,EQ,C'TVASQU2 ',OR,6,7,CH,EQ,C'ZZZZZZZ')

Not sure what the OPTION COPY VTOF is doing, but a VB File has 4 characters at the beginning which store the record length, so column 2 is actually column 6 when SORT Reads the records.

RE: FILEAID TO SYNCSORT CONVERSION

And where is the COBOL in this - you DID post to a COBOL forum.


Nic

RE: FILEAID TO SYNCSORT CONVERSION

OPTION COPY VTOF says to COPY from Variable TO Fixed lengh records.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close