Joined: 01 Feb 2007 Posts: 123 Location: Hyderabad
Hi,
I had a query related to sort.
First i had unloaded the entire table to a file. It is creating a PS file of VB format and record length 569. The table has one field of type varchar.
The file that is generated in the unload job is input for my other job which is doing sorting. When i am submitting the job it is giving abend as S000 U0222.
Should i need to consider anything related to this varchar field. My input and output file will be as follows:
Input file that is generated during unload job:
DSN=Sortin.input.file
Storage class . . . : STANDARD
Volume serial . . . : T0Q1C4 +
Data class . . . . . : COMPRESS
Organization . . . : PS
Record format . . . : VB
Record length . . . : 569
Block size . . . . : 27993
1st extent cylinders: 1
Secondary cylinders : 100
Data set name type : EXTENDED
Output file to be created:
DSN=Sortout.output.file,
DISP=(,CATLG,DELETE),SPACE=(CYL,(500,500),RLSE),
RECFM=FB,LRECL=569,
BLKSIZE=0
It is displaying error as follows:
RECORD TYPE IS V - DATA STARTS IN POSITION 5
INVALID DATA SET ATTRIBUTES SPECIFIED OUDMCSTA RECFM
Tell me what to do in this regard. Is this because i had a varchar field in my table.
I think you have with your //SYSIN control statements. You may have started the sorting job at position 0 of your file, which is actually still a part of RDW for VB files. I think this problem was already posted in this forum. You may try searching for more info.
BTW, here's an example:
sort fields=copy
outrec fields=(4,565)
Let me know if it worked. Oh, and I don't think the varchar had anything to do with your problem.
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
Despite what od311 has said, we still need to see your sort control cards.
You are creating an FB file from a VB input, which will need extra attention.
Please do not code BLKSIZE=0, because unless you SMS environment is correctly set up this can actually cause some datasets to really have a BLKSIZE of 0, which then causes problems for DFSMShsm and other ILM software products. Just leave the BLKSIZE= paramter off and let the OS determine the best BLKSIZE for you.
This is my sort job. Here input file is in VB format. When i submit the job it is showing the following error....
END OF STATEMENTS FROM CTL1CNTL - PARAMETER LIST STATEMENTS FOLLOW
DEBUG NOABEND,ESTAE
OPTION MSGDDN=DFSMSG,LIST,MSGPRT=ALL,RESINV=0,SORTDD=CTL1,SORTIN=OUDMC
ST,SORTOUT=OUDMCSTA,DYNALLOC
SORT FIELDS=COPY
RECORD TYPE IS V - DATA STARTS IN POSITION 5
C5-K90007 C6-K90007 C7-K90000 C8-K90007 E9-K90007 C9-BASE E5-K14794