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

SSH with GDG new generation


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu Mar 26, 2009 4:49 pm
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

Moderator Emeritus


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

PostPosted: Thu Mar 26, 2009 9:04 pm
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
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

Moderator Emeritus


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

PostPosted: Fri Mar 27, 2009 10:30 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts DFHPI1008 JSON generation failed COBOL Programming 0
No new posts Started task using a generation dataset JCL & VSAM 7
No new posts Report generation JCL & VSAM 18
No new posts How can I get Generation Nbr of GDG f... IBM Tools 1
No new posts Sequence number generation for multip... DFSORT/ICETOOL 2
Search our Forums:

Back to Top