Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could not allocate multiple data sets via one script #9

Open
tangthth opened this issue Aug 27, 2018 · 0 comments
Open

could not allocate multiple data sets via one script #9

tangthth opened this issue Aug 27, 2018 · 0 comments

Comments

@tangthth
Copy link

Issue Description:

vsam.allocSync() could not allocate multiple data sets via one single nodejs script.
No such problem for vsam.openSync(), which could open multiple data sets via one single script.

Reproduce Steps:

  1. write a nodejs script below to allocate 2 data sets
  2. execute the script

Logs:

/u/usra/myscripts:>node test_vsam.js
New vsam dataset allocated: USRA.NODEJSD.VSAMDSA1
/u/usra/workdir/nodejs/nodejs.test.vsam_1.0.0/scripts/test_vsam.j
s:333
vsamObjb = vsam.allocSync(dsnameb, JSON.parse(fs.readFileSync('schema.json')
))
¬
TypeError: Failed to allocate dataset
at TypeError (native)
at vsamAllocateX (/u/usra/workdir/nodejs/nodejs.test.vsam_1.0
.0/scripts/test_vsam.js:333:21)
at Object. (/u/usra/workdir/nodejs/nodejs.test.vsa
m_1.0.0/scripts/test_vsam.js:347:1)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)

Reference:

    vsamObja = vsam.allocSync(dsnamea, JSON.parse(fs.readFileSync('schema.json')))
    console.log("New vsam dataset allocated: " + dsnamea)
    vsamObjb = vsam.allocSync(dsnameb, JSON.parse(fs.readFileSync('schema.json')))	
    console.log("New vsam dataset allocated: " + dsnameb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant