NEORIS-ZDEVOPS / JD-Graph

VS Code Extensions - JD Graph. View Job control language files' relations at a glance.
Apache License 2.0
1 stars 0 forks source link

Can not find zowe profile #2

Open aviVzm05 opened 6 days ago

aviVzm05 commented 6 days ago

I have installed schedule viewer extension in vs code. However when I've added the zowe profile, this says profile not found. I am.using v2 of zowe profiles.

Is there any setup that is messing?

antonkc commented 6 days ago

Greetings, thanks for opening an issue.

Please, ΒΏCan you verify if the profile selected in our configuration matches the one you have in the Zowe view?

image image

If so, can you guide us to recreate the error?

aviVzm05 commented 6 days ago

Hello, thank you for getting back to me. This does match. However am usinf zosmf profile not rse.would that cause an issue?

antonkc commented 6 days ago

It shouldn't. It should work both in ZOSMF and RSE.

When does it say "profile not found"? What operation were you trying to complete?

aviVzm05 commented 6 days ago

Unfortunately I can not provide screen shots πŸ˜”. Am trying to do the action "Schedule Viewer: Check zowe profile"

Got a pop-up that says "jclgraph.chexkProfile not found".

Other errors, " Error while searching schedulers quick access icons. Inner error is: Error Specified profile 'zosmf _profile' could not be found".

antonkc commented 6 days ago

Greetings.

I found the problem.

That command you used doesn't actually report about the status of your zowe profile. It was intented to be removed, but slipped into this version. If the profiles in the zowe explore view and the Scheduler's configuration match, you are set to go.

You can check you connection to zowe by downloading a default file from the mainframe. image

The next version will include a walkthrough about the configurations and commands to be used.

aviVzm05 commented 6 days ago

Aah, I will give a try. I did go.through the documentation but was unable to find process or format of the schedule.json to be created is there a prescribed format for the files to be in? Could you kindly point me to right documentation?

antonkc commented 6 days ago

For a lack of a better documentation, I will give you some pseudo types.

type JobsData:
    entries?: string[] // which JCLs are entries to the mesh of JCLs
    jobs: JobData[] //  the actual data, an JSON array of type JobData
type JobData:
    jcl: string // name, eg: JOB0001
    lib: string // library of the job
    desc?: string // Optional description
    app: string // Name of the app
    in: string[] // Condition the JCL takes to execute. eg. ["JOB0000_ok","10:00utc"]
    out: string[] // Condition the JCL emmits when executed. eg. ["JOB0001_ok"]

edit: The JSON main object is of type "JobsData".

I am sorry for the lack of it. Hope this helps.

aviVzm05 commented 6 days ago

Am.getting the same error that profile not found.. when trying the command "Schedule Viewer: open default"

Is there a location where the extension is checking for profile name? Since with v2 the profile details are maintained in zowe.config.jsob files.

antonkc commented 6 days ago

Profile v2 is supported by the extension.

Can you try setting the profile with this command? image

aviVzm05 commented 6 days ago

This did the job πŸ‘πŸ‘πŸ‘. Got an error that protocol field was missing in my zowe config file for zosmf profile.

Once I added the field to https. This worked.

Thank you very much for taking the time. Possibly a feature request to update the error message to provide more information.

I'll try to add some schedules and try this out.

Also, could you add to this how to map local file details and details on variables. It'd be really helpful