Page 1 of 2

Copybook reformatting

PostPosted: Mon Sep 24, 2012 2:25 pm
by thermalchu
I have a data file with copybook. I have to reformat this file according to new copybook in which some fields are removed. The new file should contain data only from the common fields of both copybook. Can it be done using XREF?

Re: Copybook reformatting

PostPosted: Mon Sep 24, 2012 4:09 pm
by thermalchu
k,got it...Thanks

Re: Copybook reformatting

PostPosted: Mon Sep 24, 2012 5:49 pm
by BillyBoyo
Thanks for letting us know. Would you like to share your solution, which may help others facing a similar task in the future?

Re: Copybook reformatting

PostPosted: Tue Sep 25, 2012 4:08 pm
by thermalchu
I used REFORMAT option in File aid. It is working when I do it as online but while trying to generate jcl to submit it via batch mode, it shows error: UTILITY DATA SET NOT IN CATALOG OR CATALOG CAN NOT BE ACCESSED. I searched in google for the screenshots/File aid tutorials which shows how to do batch REFORMAT. I didn't got any. :(

Re: Copybook reformatting

PostPosted: Tue Sep 25, 2012 4:14 pm
by NicC
Did you search with your File-Aid support people?

Re: Copybook reformatting

PostPosted: Tue Sep 25, 2012 4:30 pm
by thermalchu
I think we don't have support people.

Re: Copybook reformatting

PostPosted: Tue Sep 25, 2012 4:40 pm
by NicC
Someone must have installed it and be responsible for maintaining and updating it. Or some group - possibly the sysprogs. Ask around. Ask your manager if necessary.

Re: Copybook reformatting

PostPosted: Tue Sep 25, 2012 5:04 pm
by thermalchu
k,I'll try. Still can you suggest any reference?

Re: Copybook reformatting

PostPosted: Tue Sep 25, 2012 6:53 pm
by NicC
The order of applying references:
F1 key
Manual/documentation
colleagues
support group
software supplier
internet search
forums

Re: Copybook reformatting

PostPosted: Thu Sep 27, 2012 2:35 pm
by thermalchu
I got an error:
$$DD01 REFORMAT OUT=0,REFOUT=ALL
ABOVE FUNCTION ENDED ON DD01R IS NOT A REFORMAT DEFINITION

How to write correct Reformat definition??