Jeep,
I just installed a new cam chain in my '77 550. Yes, the chain is "endless" which normally requires you to crack the crank case open to put a new one on. If you are adventurous, you can buy a new chain, break a link out of the old and new chain, use the old chain to draw the new chain around the crank then use a "soft link" for a CB400T to make the chain endless again.
Also, there are really good pictures in the Engine FAQ on how to get the cam sprocket back on and properly timed. I struggled with it until I was directed to the pictures when it suddenly all made sense! The trick for me was to slip the camshaft through the chain FIRST, then thread the sprocket on. Set the crank at TDC for 1.4 and the camshaft notch (extreme right end) to align with the mating surface of the head. With a little wiggling, hook the chain over the sprocket. Use the "Mickey Mouse" ears of the sprocket to help you get the chain on. The sprocket then should be a tooth or two of lining up with the bolt holes. Shift the sprocket teeth under the chain until you have it just right. Put in one bolt, rotate the engine 180 degrees and put in the other bolt. Use a rag to stuff into the cam tunnel so you don't accidentally drop anything into the bottom of the engine.