This step fails with error "OUTPUT LRECL DIFFERS FROM SORTOUT LRECL" !! I don't know why??
Is it a must that the RECFM of TAPE to be VB?
Is the SORT FIELDS correct or should be changed to below?
Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
Posted: Mon Oct 05, 2009 9:14 am Post subject:
You are trying to write a FB file from a FB file without the required parameters in the control statements.
A stright sort will require that the output RECFM / LRECL matches the input RECFM / LRECL unless you specifically state that you want to convert from VB to FB _________________ If it's true that we are here to help others,
then what exactly are the others here for ?
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Mon Oct 05, 2009 10:46 am Post subject:
ranga_subham,
first of all you don't need 2 steps to do what you are trying to do. Never hard code the DCB properties of the sortout dataset. SORT automatically calculates it
Posted: Mon Oct 05, 2009 1:54 pm Post subject: Tried and Failed
Kolusu, I have tried the thing you suggested but it failed saying that SPACE parameter was not specified _________________ Ranga
*****
None of us is as smart as all of us - Ken Blanchard
Posted: Tue Oct 06, 2009 8:04 am Post subject: Yes
Kolusu, ok...let me clear the air....
We need to maintain the datasets on both DASD and TAPE. I did a mistake that I did not put the SPACE for the backup taken on DASD. That is why it was failing with JCL Error. Later, I added SPACE and that step finished successfully.
Thanks. _________________ Ranga
*****
None of us is as smart as all of us - Ken Blanchard
Posted: Tue Oct 06, 2009 9:21 am Post subject: Wrong BLKSIZE
Another reason for the abend while taking backup on DASD was giving the wrong BLKSIZE. I gave both LRECL & BLKSIZE as 31038 where as it should have been 31038 and 31042 respectively.
If I have to write a SPACE for a VB file, Do I give SPACE=(BLKSIZE,(100,200),RLSE) or (LRECL,(100,200),RLSE)?
Please help.
Thanks. _________________ Ranga
*****
None of us is as smart as all of us - Ken Blanchard
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Tue Oct 06, 2009 11:18 am Post subject:
ranga subham wrote:
I have an output FILE-A created as RECFM=FB & LRECL=31034 by a program. I convert this FILE-A to FILE-B as VB. After converting it from FB to VB, I am taking backup into a TAPE dataset.
Did you even realize that once you convert the FB file to a VB file the first 4 bytes will be RDW and you are actually sorting on it instead of the real data?
A VB file will have the actual data in pos 5.
As for your JCL question I recommend that you stop worrying about the LRECL and BLKSIZE hardcoding. Remove them completely.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum