Page 1 of 1

Iebgener or Syncsort

Posted: Fri Dec 29, 2006 5:51 pm
by jackie
Hi to all

I'll describe my situation first:

I work batch.
Every night I get a file that copied from some open enviroment server to MF.
The file is sequential and of variable length(VB).
The LRECL is every time different, with maximum of 400.

The COBOL program that processes the file gets the fixed length(FB) file as an input.
I am trying to convert the file I get(VB) to fixed length(FB) file.

I tried IEBGener, but I get "Conflicting DCB Parameters" messege.
I tried Syncsort but got ABEND 016 with message of same sense.

Maybe there is some parameter in Syncsort or in Iebgener or any other utility that I can use to solve the situation?
I remind you that I work batch.
Thanks

File conversion VB TO FB using ICETOOL.

Posted: Thu Jan 04, 2007 4:41 am
by Veera
Hi

What i understand from your query is

I am trying to convert the file I get(VB) to fixed length(FB) file

We can convert a file from VB TO FB using ICETOOL.

Find below the code for the same.

//SORTTEST JOB (,),'SORT FILE',MSGCLASS=T,
// CLASS=S, NOTIFY=&SYSUID
//STEP0001 EXEC PGM=ICETOOL
//DFSMSG DD SYSOUT=*
//TOOLMSG DD SYSOUT=*
//TOOLIN DD *
COPY FROM (IN1) TO (OUT) USING (ICE0)
//IN1 DD DSN=Input file, DISP=SHR
//OUT DD DSN=Outfile,
// DISP=(NEW,CATLG,CATLG),
// UNIT=SYSDA,
// SPACE=(TRK,(1,1),RLSE),
// DCB=(RECFM=FB,LRECL=9)
//*
//ICE0CNTL DD *
OUTFIL FNAMES=OUT, VTOF,
OUTREC=(1:5,9)

Note : Here i have used outrec as per my requiremnt , we can change as per our requirement.

Thanks
Veera.