IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Syncsort not propogating inpdcb into properly to output file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed May 14, 2014 2:46 am
Reply with quote

Howdy,

"Forever" Syncsort has been used here to copy files using the DCB info of the input for the output.

One (at least) of the normal nightly copies has been found to Not use the input file DCB info. The input is Variable but the output file is Fixed. The JCL used follows:
Code:
//COPYSTEP EXEC PGM=SORT                           
//SYSOUT   DD SYSOUT=*                             
//SORTIN   DD DSN=MY.VSAM.VENDR.MSTR,DISP=OLD     
//*                                               
//SORTOUT  DD DSN=MY.CP.VENDR.PROD.PERM(+1),     
//            DISP=(NEW,CATLG,KEEP),               
//            UNIT=3390,                           
//            DATACLAS=DCLMTP7,                   
//            SPACE=(CYL,(1200,600),RLSE)         
//*                                               
//SYSIN    DD *                                   
 OPTION COPY                                       
//*


The input is a VSAM file and the output is a PS GDG.

This has been running regularly for multiple years and some new requirement has come up and when the GDG was used vas input, the V/F discrepancy was discovered.

I'll dig some more in the Syncsort doc, but this rings no bell with me . . . icon_confused.gif

Thoughts?

Thanks,
d
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed May 14, 2014 2:54 am
Reply with quote

I would check the DATACLAS definition

and if the data amount is reasonable try with a different utility
( IDCAMS REPRO for example )
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed May 14, 2014 4:39 am
Reply with quote

If any DCB-info is specified in the JCL, it overrides. However, that would mean that the COPY is doing it without CONVERT/VTOF, I'm not sure why that would be.

Can you post the sysout? Review the options? The DATACLAS must have been changed at some point, either name or content, if it worked originally. I guess. Any recent upgrade of SyncSort?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed May 14, 2014 5:44 am
Reply with quote

Nope. no dcb-info in the jcl (unless dataclas counts). What I posted is what is submitted.

I'll try to intercept the sysout next time it is run.

I plan on finding the storage management people and asking if there is anything special/specific with this.

In the last several months,. Syncsort was upgraded from 1.1 (yup, Not a typo) to 1.4 on this system. Much of the software is let sit Way too long. They just upgraded Easytrieve to 6.4 (which has been out of support for years).

I have this horrible fear that using this copy has not been done for a long while, if ever. . .

Thanks for the replies and when anyone thinks of something else, i'll surely be interested icon_cool.gif
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed May 14, 2014 6:14 am
Reply with quote

Just noticed the VSAM in the SORTIN DSN.

There should have been a RECORD statement with a TYPE=V. VSAM doesn't have an RDW, and TYPE=V tells SORT to pretend the records have an RDW.

The lack of a failure message implies that RECFM has been supplied on the output (where SORT is going to look to know how to treat the input, fixed or variable), I think. RECFM=F/FB.

If the step ever worked, at some point the RECFM was changed to F/FB. Or a RECORD TYPE=V was dropped. Perhaps something else. Perhaps never worked.

Good news is that, I think, all short records will have been padded. Unless there is an LRECL on the output which is shorter than the maximum record-length of the VSAM, the data should be recoverable. I think. FTOV with VLTRIM for the pad character (binary zero)?

Need the sysout. It should be "clear" there.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top