Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Syncsort not propogating inpdcb into properly to output file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
dick scherrer

Site Director


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

PostPosted: Wed May 14, 2014 2:46 am    Post subject: Syncsort not propogating inpdcb into properly to output file
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Wed May 14, 2014 2:54 am    Post subject: Reply to: Syncsort not propogating inpdcb into properly to o
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7230

PostPosted: Wed May 14, 2014 4:39 am    Post subject: Reply to: Syncsort not propogating inpdcb into properly to o
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

Site Director


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

PostPosted: Wed May 14, 2014 5:44 am    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7230

PostPosted: Wed May 14, 2014 6:14 am    Post subject: Reply to: Syncsort not propogating inpdcb into properly to o
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us