Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
SSH with GDG new generation

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
pravle

New User


Joined: 06 Jun 2006
Posts: 8

PostPosted: Thu Mar 26, 2009 10:52 am    Post subject: SSH with GDG new generation
Reply with quote

Hi,

I am trying to SSH to a GDG file from UNIX to Mainframe and it is not transferring it and giving error.
I gave the following command and as can be seen I am using the relative number i.e +1 here:
ssh -v username@remote.host "mv -P RECFM=FB,LRECL=150 /homedir/username/test.dat \"//'HLQ.XXXX.DATA(+1)'\" "

Error:
mv: FSUMF157 //'HLQ.XXXX.DATA' is an existing sequential data set, no member allowed

But when I try to use absolute number it is working i.e G0001V00 here:
ssh -v username@remote.host "mv -P RECFM=FB,LRECL=150 /homedir/username/test.dat \"//'HLQ.XXXX.DATA.G0001V00'\" "

The GDG index (base) is already built at the mainframe side.
Is there a way I can do SSH using relative number? The hard-coding will mean everytime I have to be aware of the last number and increment it manually.
The version of SSH is:
OpenSSH_4.3p2, OpenSSL 0.9.7d 17 Mar 2004

Thanks.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Thu Mar 26, 2009 4:49 pm    Post subject:
Reply with quote

I don't use OpenSSH here, but I suspect the error message is telling you that a GDG reference in relative form is not valid as used. Either plan on using absolute references, or change your processing so OpenSSH isn't attempting to send to a relative GDG reference.
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: Thu Mar 26, 2009 9:04 pm    Post subject:
Reply with quote

Hello,

You might consider sending the file as some constant non-gdg name and then copy it to the gdg+1 after the transmission. . .
Back to top
View user's profile Send private message
pravle

New User


Joined: 06 Jun 2006
Posts: 8

PostPosted: Fri Mar 27, 2009 10:13 am    Post subject: Reply to: SSH with GDG new generation
Reply with quote

Thanks for the suggestions.

Yes, I am about to implement suggestion regarding sending ps file and then write a JCL to convert it into GDG.
But this requires creating extra JCL for every GDG that needs to be transferred. I was thinking that may be a solution will be there which would not require this.
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: Fri Mar 27, 2009 10:30 am    Post subject:
Reply with quote

Hello,

Depending on your standards, you could create a small proc to copy the file to a gdg that had symbolic parameters for the input and output dataset name (or some part of it).

Also, if you implement a separate copy step, i suggest your use the sort product on your system to do the copy. The sort products are exceptionally fast at creating a copy of a sequential file (much faster than iebgener or idcams).
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm
No new posts alphanumeric sequence generation sivaprasad.gadhi COBOL Programming 6 Wed Mar 30, 2016 3:03 am
No new posts alphanumeric sequence generation sivaprasad.gadhi DFSORT/ICETOOL 8 Mon Mar 21, 2016 1:09 am
No new posts Report generation senthamizh DFSORT/ICETOOL 1 Sat Jun 20, 2015 2:01 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us