PDF File names

Previous topic - Next topic

DDP021

Hi, we have an user group that wants to load multiple PDF's to OnDemand...The way the files need to be named are ApplicationGroupName.ApplicationName.PDF...The issue is they have MANY MANY files they want to send at one time....Is it possible to send many files to the ARSLOAD directory in OnDemand with the same name? As at test, using WINSCP, when I attempted to copy a file from my PC to the OnDemand directory, it indicated that the file already existed and asked if existing one should be overwritten. 

Ed_Arnold

Sounds to me like a Windows question/limitation rather than OnDemand.

And I think you already have your answer.

Ed
#zOS #ODF

DDP021

I think you're right Ed!....Was just making sure I wasn't missing something!....;-)

Thanks for the reply!

Take care

Ed_Arnold

Okay, here's a solution that may not be practical --- inviting comment:

Can you send those files directly to z/OS SPOOL?  FTP to SPOOL?

Then all of those files can live in the z/OS SPOOL and then I think you wouldn't have to care about duplicate names.

Just load 'em from there.

Ed
#zOS #ODF

DDP021

Ed,

These files are being sent via NDM...They are sending the files from their server directly to our CMOD Arsload directory.....The users are located in Germany

Ed_Arnold

Quote from: DDP021 on July 19, 2013, 04:23:45 PM
Ed,

These files are being sent via NDM...They are sending the files from their server directly to our CMOD Arsload directory.....The users are located in Germany

NDM?  NetView Distribution Manager?  If that's it then hmmm - not really familiar with it but I think it's about as fresh as the pyramids.

I don't know whether it has the capability of FTP or distribution directly to JES SPOOL or not.

Ed
#zOS #ODF

Justin Derrick

NDM - Network Data Mover, aka Connect:Direct, formerly of Sterling Software.

It's supposed to be a 'reliable' file transfer method with features such as pre-processing and post-processing scripts, restartable transfers, etc. etc.

-JD.
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Webinars:  https://CMOD.Training/
IBM CMOD Professional Services: https://CMOD.cloud

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

Stephen McNulty

If you are using NDM (aka connect direct) take advantage of it to preprocess the files to create unique file names before transmitting as an example, put in one more level within the file name instead of ApplicationGroupName.ApplicationName.PDF  try using ApplicationGroupName.ApplicationName.dateand time.PDF each file transfer will have a uniquee name.  I would also use it to post process the file name depending on the size of the file, I would normally send with a temporary name, and once the file is succesfully transferred, then rename it so that the automated load would pick it up.  This will stop failed loads due to a partial file.
#ISERIES #ODWEK #XML

pankaj.puranik

Why not do this?
Ask the source systems to append one more qualifier at the end of the file name.
This last qualifier could be a time stamp.
So your problem with the file getting overwritten would be solved and it would be easier to track later as to which file was loaded when.

Thanks
Pankaj.

DDP021

The issue with changing the filename (ApplicationGroupname.ApplicationName.pdf) to something else, (ex ApplicationGroupname.ApplicationName.0820.pdf is the file will fail:

arsload: Processing file >/prod/ode/cmod/arsload4/XTSPDFT4.XTSPDFT4.0820.pdf<
The application >0820< does not exist within the application group >XTSPDFT4<

Apparently something is defined in the ARSLOAD process on that directory (arsload4) that the file must have a strict naming convention...As you can see from the error above, it thinks 0820 is the Application Name where is is actually XTSPDFT4..

DDP021

Another followup.....Tried renaming the file to:

XTSPDFT4.XTSPDFT4.pdf.0820

The file just sits there on the ARSLOAD4 directory...The ARSLOAD process seems to be just ignoring the file...So again, it appears the ONLY valid filename that is recognized is APPLICATIONGROUPNAME.APPLICATIONNAME.pdf (Ex XTSPDFT4.XTSPDFT4.pdf).  From what we've been told by our systems people is this can't be modified...If there is anyone out there that has any information to the contrary that we can pass along to our system's people that will allow the ARSLOAD process to recognize another file name format, I'd appreciate it!!!!!!!!!!!!!!

ewirtz

Hi,

you have at least two possibilities:

1. running a script that picks the files and does a rename whenever possible (= current file is loaded by arsload).
2. if you are on Z/OS you can send the files p.e. with REXX to spool like Ed has mentioned.

regards

egon

LWagner

The autosys report generator sending PDFs to us places its parameters for each report in the file name, thus making each file unique.