Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FILEAID TO SYNCSORT CONVERSION

Status
Not open for further replies.

Adbhut

Programmer
Jan 11, 2012
5
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
 
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.

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


Nic
 
OPTION COPY VTOF says to COPY from Variable TO Fixed lengh records.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top