|
|
| Author |
Message |
ritesh pandey
New User
Joined: 09 Feb 2007 Posts: 10 Location: Pune
|
|
|
|
Hi ,
Can anybody send me the syntax for opening a VSAM file through Print command . |
|
| Back to top |
|
 |
References
|
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 3744 Location: Brussels once more ...
|
|
|
|
| The PRINT command of what, IDCAMS, COBOL, SAS ??? |
|
| Back to top |
|
 |
Rajesh Sampath
New User
Joined: 18 Jun 2008 Posts: 9 Location: Pune
|
|
|
|
U mean Print statement.
print ids(/) ch ? |
|
| Back to top |
|
 |
ritesh pandey
New User
Joined: 09 Feb 2007 Posts: 10 Location: Pune
|
|
|
|
Thanks Rajesh for quick reply, but i have already tried . It doesn't work.
Do you know any other option to open a VSAM file without File Aid . |
|
| Back to top |
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 3744 Location: Brussels once more ...
|
|
|
|
What is it that you want to do with the VSAM file, and what organisation is it, ESDS, KSDS, RRDS, Linear ?
Please post your errors from your abortive attempt - "It doesn't work" is hardly much for anyone else to go on ........... |
|
| Back to top |
|
 |
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 180 Location: Chennai
|
|
|
|
HI,
If its OPENed somehwere, then you will get open error 168.
If error code 168 occured for u then
Find out who else is using this dataset, get it closed, then type PRINT IDS command, you won't get 168 then.
Regards
R KARTHIK |
|
| Back to top |
|
 |
ritesh pandey
New User
Joined: 09 Feb 2007 Posts: 10 Location: Pune
|
|
|
|
| WE don't have any tool like file Aid .So anybody suugest me how can i see the content of the KSDS VSAM file ? |
|
| Back to top |
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 3744 Location: Brussels once more ...
|
|
|
|
| ritesh pandey wrote: |
Thanks Rajesh for quick reply, but i have already tried . It doesn't work.
Do you know any other option to open a VSAM file without File Aid . |
Will you please pay attention and do as asked and post the output from your failed job so that we have sufficient, well certainly MORE, information to be able to help you.
Unless you help us, all we can do is guess and may never get to a solution. |
|
| Back to top |
|
 |
Itanium
Active User
Joined: 22 Jan 2006 Posts: 58 Location: India
|
|
|
|
ritesh,
Can you please explain what you want and what you are trying to do ?
Have you already checked VSAM Manuals for your queries ?
Thanks. |
|
| Back to top |
|
 |
ritesh pandey
New User
Joined: 09 Feb 2007 Posts: 10 Location: Pune
|
|
|
|
I am tring to see the content of the VSAM file through print statment ie print ids(/) ch . I am getting the error message
** VSAM OPEN RETURN CODE IS 160
NUMBER OF RECORDS PROCESSED WAS 0
LASTCC=12 |
|
| Back to top |
|
 |
NitinP
New User
Joined: 12 May 2008 Posts: 3 Location: Chennai
|
|
|
|
Hi Ritesh ,
The Command you are asking is PRINT IDS(/) CH , Type this command before your vsam file , I would not suggest using this because you have to keep pressing Enter until end of file reaches , Check if your shop uses FILEAID, INSYNC etc
Regards |
|
| Back to top |
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 3744 Location: Brussels once more ...
|
|
|
|
Well, we are sort of getting there ................
1) Please post your code and JCL
2) Please post the complete message, including the message ID's - e.g. IDC3009I
Quick thoughts - are you using INDATASET rather than allocating the dataset via a DD and DISP=SHR then using INFILE in your control statements. Using DD name and INFILE is much safer and causes less enqueue problems |
|
| Back to top |
|
 |
Robert Sample
Senior Member
Joined: 06 Jun 2008 Posts: 1180 Location: Atlanta, GA
|
|
|
|
| Run a LISTCAT on the VSAM file to see if it has data. One of the reasons for a return code 160 is that the file contains no records. |
|
| Back to top |
|
 |
dbzTHEdinosauer
Senior Member
Joined: 20 Oct 2006 Posts: 1673 Location: germany
|
|
|
|
and since your dd statements are correct,
your jcl syntax for the utility being invoked is correct,
and all the parms that you provided the utility are correct,
there can be only one answer: the computer made a mistake |
|
| Back to top |
|
 |
Robert Sample
Senior Member
Joined: 06 Jun 2008 Posts: 1180 Location: Atlanta, GA
|
|
|
|
Dick: If I posted something like that, I'd make sure I was in a well-grounded location because lightning just has to be on the way! |
|
| Back to top |
|
 |
|
|